Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36
  1. #1
    Join Date
    Jun 2006
    Posts
    403
    Plugin Contributions
    0

    red flag how to put a line between categories?

    I want to seperate categories with lines in the category sidebox, just like there is a line between "new products" and categories. How can I do that?

    Also, I want to add a little triangle in front of each category. How can I do that?

    Thank you very much for instructions!

    Lina

  2. #2
    Join Date
    Jan 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Look for this file:

    includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php

    and change this :

    Code:
    if (SHOW_COUNTS == 'true') {
            if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
              $content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
            }
          }
    
          $content .= '<br />' . "\n";
    by this

    Code:
          if (SHOW_COUNTS == 'true') {
            if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
              $content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
            }
          }
    
          $content .= '<hr id="catBoxDivider" />' . "\n";

  3. #3
    Join Date
    Jan 2009
    Posts
    74
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Using V1.3.9b

    Current with all updates.

    I'm just trying to figure out how to add lind separators between each item in my "EZ PAGE SIDEBOX"

    I read what was listed here, and tried to apply that fix to my "tpl_ezpages.php", but it wouldn't work. I could only get lines at the beginning of the box and at the end, but not between each ezpage????

    You can see what I mean by looking at the page here: www.celebrityapparel.net

    This is my ezpage code:
    /* $content .= '</ul>' . "\n";*/
    $content = '<hr id="catBoxDivider" />';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
    for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
    $content .= '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n" ;
    } // end FOR loop
    $content .= '<hr id="catBoxDivider" />' . "\n";
    $content .= '</div>';
    ?>

    Thanks

  4. #4
    Join Date
    Jan 2009
    Posts
    74
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Am I that ignorant? I've followed the directions in the help section, but to no avail. Please -- anyone.. I know it's something so easy that I'm missing...but that's what is making it so hard. I'm blinded by my own mind...

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Quote Originally Posted by Courage9 View Post
    Using V1.3.9b

    Current with all updates.

    I'm just trying to figure out how to add lind separators between each item in my "EZ PAGE SIDEBOX"

    I read what was listed here, and tried to apply that fix to my "tpl_ezpages.php", but it wouldn't work. I could only get lines at the beginning of the box and at the end, but not between each ezpage????

    You can see what I mean by looking at the page here: www.celebrityapparel.net

    This is my ezpage code:
    /* $content .= '</ul>' . "\n";*/
    $content = '<hr id="catBoxDivider" />';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
    for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
    $content .= '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n" ;
    } // end FOR loop
    $content .= '<hr id="catBoxDivider" />' . "\n";
    $content .= '</div>';
    ?>

    Thanks
    Try this:
    /* $content .= '</ul>' . "\n";*/
    $content = '<hr id="catBoxDivider" />';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
    for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
    $content .= '<hr id="catBoxDivider" />';
    $content .= '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n" ;
    } // end FOR loop
    $content .= '<hr id="catBoxDivider" />' . "\n";
    $content .= '</div>';
    ?>

    1. the highlighted red font is the fix...

  6. #6
    Join Date
    Jan 2009
    Posts
    74
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    I knew it was easy....Thanks Your the best! Yes it worked perfectly...I just forgot how to do it.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how to put a line between categories?

    Note that if you are using this in several places on one sidebox or page, you should not call it <hr id="catBoxDivider" /> but <hr class="catBoxDivider" />.
    An id is supposed to be unique on a page. You can style
    .catBoxDivider {}
    however you like in your stylesheet.

    Also, for any sidebox that uses a <ul> or otherwise has its elements in block-type display, you don't need to edit the template file at all. You can use a stylesheet rule to put a top or bottom border on the items.

  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Your Welcome..

    Nice explanation of the function of the stylesheet...

  9. #9
    Join Date
    Oct 2009
    Location
    Smack in the Middle
    Posts
    131
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Thanks Guys!

    <hr class="catBoxDivider" />.

    This worked well for me on both the category and ez page sidebox. Nice evenly spaced lines.

    I'm assuming it will work on the information sidebox as well, but haven't tried it yet.

    Dalton
    Skin that 'un pilgrim, and I'll bring ya' another.
    Running 1.3.9h with a few mods here

  10. #10
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: how to put a line between categories?

    Yes, you are very correct..

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. How to remove the line between product?
    By leisbi in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Dec 2011, 04:08 PM
  2. Replies: 3
    Last Post: 11 Sep 2008, 08:28 PM
  3. Line between categories
    By minute in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Jul 2008, 12:52 PM
  4. how to put a line between ezpages in sidebox?
    By lina0962 in forum Basic Configuration
    Replies: 0
    Last Post: 29 Mar 2007, 05:59 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
  •  
disjunctive-egg