Results 1 to 4 of 4

Thread: How to add "category" path to links?

  1. #1
    Hart_House's Avatar
    Hart_House is offline Registered
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default How to add "category" path to links?

    I wanted to add the category path to the links table by just copying the category table in the review.html file to the rows.html file but the category doesn't show up in the rows.html, what am I missing?

    I like the way google search engine has it links and shows the category path to that link. How do you ... do this.....

    Hart

  2. #2
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    Hmm ... you have to edit some files.

    1. templates/rows.html, add <%category_path%> tag
    2. browse.php3, line 166-172
    PHP Code:
          $category_path ShowCategoryPathLink($cat);
      
          
    $rows .= EvalTemplate($template_path."rows.html",
            
    "\$number,\$link_id,\$title,\$date,\$unique_name,\$category_path,".
            
    "\$description,\$hits,\$votes,\$rating,\$url,\$bid,".
        
    "\$new,\$hot,\$top_rated,\$pick,\$contact_name,\$email".$templ_fields);  
          
    $rows .= "\n"
    3. new.php3, hot.php3, top_rated.php3, pick.php3
    PHP Code:
          $cat $value["category_id"];
          
    $category_path ShowCategoryPathLink($cat);
          
          
    $rows .= EvalTemplate($template_path."rows.html",
            
    "\$number,\$link_id,\$title,\$date,\$category_path,".
            
    "\$description,\$hits,\$votes,\$rating,\$url,\$bid,".
                
    "\$new,\$hot,\$top_rated,\$pick,\$contact_name,\$email".$templ_fields);  
          
    $rows .= "\n"

  3. #3
    Hart_House's Avatar
    Hart_House is offline Registered
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    How do I make the category path show up in a search dody?

  4. #4
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    It should be the same way. You should hack search.php3 too.

Similar Threads

  1. Moving from G-T Links 2
    By esm in forum Pre-Sales Questions
    Replies: 14
    Last Post: 05-30-2005, 05:26 PM
  2. Show Top-Rated Links on Main Page
    By pip in forum v5.x
    Replies: 1
    Last Post: 05-16-2004, 04:33 AM
  3. Delete 800 links one at a time ?
    By killipso in forum v5.x
    Replies: 2
    Last Post: 01-26-2004, 11:55 AM
  4. Replies: 18
    Last Post: 12-27-2003, 06:35 PM
  5. Special Import of GT links
    By esm in forum v5.x
    Replies: 4
    Last Post: 05-21-2003, 06:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •