Results 1 to 3 of 3

Thread: Category folder image above text

  1. #1
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    12

    Question Category folder image above text

    I want to have the category folder image sit on top of the category names instead of to left of it.
    I think I just need to add a line break somewhere into category.class.php but I can't figure out where exactly.

    I'm using version 5.2.0

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    The codes is in function Display(), line 505-512

    Code:
    			  if (!empty($image)) {
    			    $category
                      .= "<a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$image</a> \n";
                  }
    			  
    			  $category
                    .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$cat_name</a></b> $html_number_of_links \n";
                  $category .= "$number_of_links\n";
    Change to:
    Code:
    			  if (!empty($image)) {
    			    $category
                      .= "<a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$image</a> <br />\n";
                  }
    			  
    			  $category
                    .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$cat_name</a></b> $html_number_of_links \n";
                  $category .= "$number_of_links\n";

  3. #3
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    12

    Default

    The code in my page was different than yours. Lines 505-512 were:

    Code:
     .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" id=\"cat_$cat_id\">$image $cat_name</a></b> $html_number_of_links \n";
                  $category .= "$number_of_links\n";
    
                  if ($this->show_description) {
                    if (!empty($cat_description))
                      $category .= "<br />";
    
                    $category .= "$cat_desc \n";
    But I got it working by putting a break before the cat_name.

Similar Threads

  1. Replies: 3
    Last Post: 01-13-2006, 04:35 PM
  2. removing the folder image
    By vittle in forum v5.x
    Replies: 2
    Last Post: 12-05-2005, 03:36 AM
  3. How Do I Add Text by Image Link
    By lordkinjo in forum v5.x
    Replies: 1
    Last Post: 06-04-2003, 08:40 AM
  4. Remove folder image on Front Page
    By binto in forum v5.x
    Replies: 4
    Last Post: 06-04-2002, 12:27 PM
  5. Add new image or text to categories
    By Che Guevara in forum v3.2
    Replies: 0
    Last Post: 09-01-2001, 10:52 AM

Posting Permissions

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