Page 44 of 227 FirstFirst ... 3442434445465494144 ... LastLast
Results 431 to 440 of 2267
  1. #431
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Categories Dressing

    It worked!!!!!!!!!!!!!!! *is jumping trough the roof of joy*

    Thank you so much Glenn! You are a star!!!
    Working on http://www.skull-shop.net once again.

  2. #432
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Yes I am a complete idoit and cant figure this out :)

    I got the pics to work, but I cant get rid of the link heading text below new products. It says to edit out the line, but it doesnt work for me. I edited the words"link heading" and it goes away but leaves the pink box. When I erase the whole line the whole page vanishes.

    See it here

    http://altisreef.com/

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

    Default Re: Categories Dressing

    Just put comment marks // in front of the line:
    PHP Code:
        if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    //$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') . '</span>':'Link Heading</span>' . $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link 
          
    $content .= '<a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' "\n";
        }
      }
      
    $content .= '</div>'

  4. #434
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thank you. I was commenting it out to early.

    GReat mod and thanks for the support.

    Is there any way to put the pics on the horizontal nav bar on top?

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

    Default Re: Categories Dressing

    Yes, but the cat-tabs work differently than the categories sidebox, so the code doesn't translate directly.
    It would take a bit of work to get automatic category images there.

  6. #436
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thanks for your time. If you every get into saltwater aquariums, look me up. I owe you one :)

  7. #437
    Join Date
    Sep 2008
    Location
    Indiana
    Posts
    12
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I used some of your code.

    $links_list = array();
    while (!$categories_tab->EOF) {
    if ($categories_tab->fields['categories_id'] != 65) {//skip cat id 65
    // currently selected category
    if ((int)$cPath == $categories_tab->fields['categories_id']) {
    $new_style = 'category-top';
    $categories_tab_current = '<span class="category-subs-selected">' . $categories_tab->fields['categories_name'] . '</span>';
    } else {
    $new_style = 'category-top';
    $categories_tab_current = $categories_tab->fields['categories_name'];
    }

    // create link to top level category
    $links_list[] = '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . (int)$categories_tab->fields['categories_id']) . '">' . $categories_tab_current . '</a> ';
    }//skip cat id 65
    $categories_tab->MoveNext();

    My question is, how do I not show more than one category?

    -Russ
    www.uniqueseason.com

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

    Default Re: Categories Dressing

    If you want to skip two or three categories, you can just duplicate the test:
    PHP Code:
    if ($categories_tab->fields['categories_id'] != 65 and $categories_tab->fields['categories_id'] != 69) {//skip cat id 65 & 69 
    If you have more to skip, you can use an explode function:
    PHP Code:
    if (!in_array($categories_tab->fields['categories_id'], explode(',','65,69,77,123')) {//skip cat id 65, 69, 77, 123 
    See the comments at the top of
    /includes/templates/template_default/common/tpl_main_page.php for a bit more info on this.

  9. #439
    Join Date
    Aug 2008
    Posts
    105
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I am a total newbie to php & css.

    I have read and reread and reread the Read Me...looked through the forum and still can't get Categories Dressings to work. So I know that I am obviously missing something and appreciate your patience with me.

    Here is what I have done -
    1. Installed CatDressing
    2. Uploaded the tpl_categories.php (did not make any adjustments to it - do I need to?) and added
    #categories a {
    background-repeat: no-repeat;
    display: block;
    }
    to my stylesheet & uploaded it
    3. I understand the cPath and have made my first gif....naming it catimage136.gif. Which should replace the flannel fabric words but doesn't. Then a pink "link Heading" appeared.

    http://www.quiltsonbroadway.com/zen/...php?main_page=

    Thanks for all your help!!!
    Mona

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

    Default Re: Categories Dressing

    You have named the file catimage136.gif - this will not work. It needs to be in the form catimg136.gif.


    See the readme section titled "To add a non-linked heading to the all/featured/specials/new links:" and comment out the heading code around line 132 in tpl_categories.php:
    PHP Code:
        if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    $content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES 'cathead-all.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES 'cathead-all.gif') . '</span>':'Link Heading</span>' $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link 
          
    $content .= '<a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' "\n";
        } 
    PHP Code:
        if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    //$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') . '</span>':'Link Heading</span>' . $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link 
          
    $content .= '<a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' "\n";
        } 

 

 

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