Page 79 of 227 FirstFirst ... 2969777879808189129179 ... LastLast
Results 781 to 790 of 2267
  1. #781
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Call me stupid but could anyone please explain how to change subcat name to image.

    define ('CAT_BOX_HEADING_1_5','1|0|image1.jpg|Some tekst|text |3');

    this doesn't work at all

    What i want is to show on subcategory 1_5 that is called CAR, the image of a CAR, instead of text CAR.

    Tnx

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

    Default Re: Categories Dressing

    That is not handled by the defines; if you save an image named catimg1_5.gif in
    /includes/templates/your_template/buttons/english/, it will be detected and used in place of the text.

  3. #783
    Join Date
    Sep 2004
    Posts
    120
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thank you very much

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

    Default Re: Categories Dressing

    Limelites -
    I just noticed your posts 758/759 and the issue you reported. I had noticed the bullet issue when looking at something else.

    It turns out that your modifications put the entire categories content inside the #catLinks <ul>, so items were a level deeper than they should be and some styling changed because of this.
    You have
    PHP Code:
      if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
        
    $content .= '</ul>';
      } 
    at the end of tpl_categories.php, but you should have moved that up along with the rest of the links code.
    PHP Code:

      $content 
    "";
      
    $prev_cat_depth = -1;
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n";
      
      
    // display a separator between categories and links
        
    $content .= '<ul class="catLinks">';
        if (
    SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
          
    $cat_box_link_head cat_box_heading('SPECIALS');
          
    $content .= $cat_box_link_head[1];
          
    $show_this $db->Execute("select s.products_id from " TABLE_SPECIALS " s where s.status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_SPECIALS) . '">' CATEGORIES_BOX_HEADING_SPECIALS '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
          
    // display limits
    //      $display_limit = zen_get_products_new_timelimit();
          
    $display_limit zen_get_new_date_range();

          
    $show_this $db->Execute("select p.products_id
                                     from " 
    TABLE_PRODUCTS " p
                                     where p.products_status = 1 " 
    $display_limit " limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $cat_box_link_head cat_box_heading('NEW');
            
    $content .= $cat_box_link_head[1];
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_NEW) . '">' CATEGORIES_BOX_HEADING_WHATS_NEW '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
          
    $show_this $db->Execute("select products_id from " TABLE_FEATURED " where status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $cat_box_link_head cat_box_heading('FEATURED');
            
    $content .= $cat_box_link_head[1];
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    $cat_box_link_head cat_box_heading('ALL');
          
    $content .= $cat_box_link_head[1];
          
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' '</li>' "\n";
        }
        
            if (
    SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
          
    $content .= '<hr id="catBoxDivider" />' "\n";
        }


      for (
    $i=0;$i<sizeof($box_categories_array);$i++) {
        switch(
    true) { 

    //lots of code


      
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
        
    $content .= '</ul>';
      } 
    You should have

    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {

    above the links and

    $content .= '</ul>';
    }

    below them:
    PHP Code:
      $content "";
      
    $prev_cat_depth = -1;
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n";
      
    //--------------------------------------open #catLinks conditional---------------------------------------
      
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    //--------------------------------------open #catLinks conditional---------------------------------------
      // display a separator between categories and links
        
    $content .= '<ul class="catLinks">';
        if (
    SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
          
    $cat_box_link_head cat_box_heading('SPECIALS');
          
    $content .= $cat_box_link_head[1];
          
    $show_this $db->Execute("select s.products_id from " TABLE_SPECIALS " s where s.status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_SPECIALS) . '">' CATEGORIES_BOX_HEADING_SPECIALS '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
          
    // display limits
    //      $display_limit = zen_get_products_new_timelimit();
          
    $display_limit zen_get_new_date_range();

          
    $show_this $db->Execute("select p.products_id
                                     from " 
    TABLE_PRODUCTS " p
                                     where p.products_status = 1 " 
    $display_limit " limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $cat_box_link_head cat_box_heading('NEW');
            
    $content .= $cat_box_link_head[1];
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_NEW) . '">' CATEGORIES_BOX_HEADING_WHATS_NEW '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
          
    $show_this $db->Execute("select products_id from " TABLE_FEATURED " where status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $cat_box_link_head cat_box_heading('FEATURED');
            
    $content .= $cat_box_link_head[1];
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    $cat_box_link_head cat_box_heading('ALL');
          
    $content .= $cat_box_link_head[1];
          
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' '</li>' "\n";
        }
        
            if (
    SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
          
    $content .= '<hr id="catBoxDivider" />' "\n";
        }
    //--------------------------------------close #catLinks conditional---------------------------------------
        
    $content .= '</ul>';
      }
    //--------------------------------------close #catLinks conditional---------------------------------------

      
    for ($i=0;$i<sizeof($box_categories_array);$i++) {
        switch(
    true) { 

  5. #785
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Glen, thanks for that. It worked a treat :-)

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

    Default Re: Categories Dressing

    Since I haven't found the concentrated time to properly update the mod in Free Addons, the zip of v2.7.3 is here for now.
    Last edited by gjh42; 3 Jun 2009 at 06:53 AM.

  7. #787
    Join Date
    Mar 2009
    Posts
    59
    Plugin Contributions
    0

    Default Re: Categories Dressing - IE7 woes

    I am building a cart with a main menu styled by Categories Dressing.

    In Firefox, all is well, no matter how far down I drill into the subcategories and products.

    In IE7, though, as I drill down, the size of the subcategories listings changes, gradually added space to the RIGHT of the menu, so that there is a gap between the menu and the next (main) div.

    I have played around with the Web Dev extension in FF to try to pinpoint the problem, to no avail. The IE7 dev tools are kind of klunky and useless in trying to find the problem

    It seems when I try to increase the padding of the subcats, it just pushes the size of the containing box outward instead of closing the "gap." Not a live site, so I can't post URL. I'll try to post screen capture later.

    TIA for your ideas.

  8. #788
    Join Date
    Apr 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hi Glenn,
    If you have time, please have a look back to post #779 ...


    Thanks

    Tim

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

    Default Re: Categories Dressing - IE7 woes

    Categories Dressing v2.7.3 has been submitted to Free Addons and should be available from there soon.

  10. #790
    Join Date
    Jan 2009
    Location
    Sask, Canada.
    Posts
    44
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hello,

    I have a question about the border that is around the categories.

    Sorry if it has been asked before, but I cant find anything about it.
    I'm new to this stuff so I might have even been searching for the wrong terms.

    How do I remove the border around the categories?

    Here is an image so you know what I mean. The arrows are pointing to the border I am talking about.



    Thanks,

    Jordin

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR