Page 42 of 227 FirstFirst ... 3240414243445292142 ... LastLast
Results 411 to 420 of 2267
  1. #411
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Categories Dressing

    Hi Glenn,

    Do you have any answer for me concerning post #406 ? (If you don't it's okay too but than I go post in another topic to find the answer but I first wanted to see if you knew)

    Juliet
    Working on http://www.skull-shop.net once again.

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

    Default Re: Categories Dressing

    I'm afraid I'm not quite clear on exactly what you want there. Tell me if I am on the right track.
    On looking it over closely it appears relatively simple:

    You want the top category buttons (Ad Mineraal & Skull Shop) to look different when in the Skull Shop category than when in the rest of the shop. Are there any other buttons that need to be different?

    The subcategory buttons are no problem because they will only ever be seen in the Skull Shop.

    You are using foreground images for categories. Background images could be handled with a per-category stylesheet, but the foreground images will require a bit of PHP added. The snippet in the thread you refer to can be used for that.
    You have:
    PHP Code:
          // categories dressing - display image if exists for category name in current language - with title tag
          
    if (file_exists(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimg' $current_path '.gif')) {
            
    $cat_name_display zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimg' $current_path '.gif''''''''title="' $box_categories_array[$i]['name'] . '"');
          } 
    PHP Code:
          // categories dressing - display image if exists for category name in current language - with title tag
          
    if ((int)$_GET[cPath] == 105) { // in Skull Shop - use different buttons
            
    if (file_exists(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimgsk' $current_path '.gif')) {
              
    $cat_name_display zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimgsk' $current_path '.gif''''''''title="' $box_categories_array[$i]['name'] . '"'); 
            }
          } else {
            if (
    file_exists(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimg' $current_path '.gif')) {
              
    $cat_name_display zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimg' $current_path '.gif''''''''title="' $box_categories_array[$i]['name'] . '"');
            }
          } 
    // cPath 105 
    Name all the button images you want to see when in the Skull Shop like catimgsk##.gif.

  3. #413
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Categories Dressing

    Glenn you are an angel, thank you so much! That is exactly what I needed!!!!!! You are really a Godsend!
    Working on http://www.skull-shop.net once again.

  4. #414
    Join Date
    Aug 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hi Glenn,

    Your code works great! Thank you! (see post #410) I tried to replace all products and new products link as you suggest in post 408 but all i achieve is that everything under my site header is blank (does not load) would you happen to know what would cause this? Thank you

    Matt

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

    Default Re: Categories Dressing

    Please post your code from that area of tpl_categories.php (in [php] and [/php] tags) so I can see what needs to be fixed.

  6. #416
    Join Date
    Aug 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hi Glenn,

    Figured it out myself. It looks great now, thanks for all the help i really appreciate it.

    Matt

  7. #417
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I have been trying to use your Category Dressing mod and cannot get it to function at all.

    - I've checked, rewritten, cut 'n' paste, everything I can think of with your code, played with hundreds of settings in Admin, messed with the images, changed the CSS, even considered using a SQL patch - the images in place of category names simply will not work!

    I am using version 1.3.8 and would prefer to have this mod running with the Column Layout mod, and using .png images.

    I figure that the problem must be an incompatibility issue or a bug but, whichever, I cannot identify the problem.

    Any ideas?

  8. #418
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I should also explain what it is that I am trying to do with Category Dressing:

    On the main page of my store I would like to have a gridwork of boxes, one each for each of the categories in my store and with the title of the category only displayed on mouseover.

    Each of these boxes will be hyperlinked to a page displaying all the products within that category and each product will be shown on its own line, with an image and title (like product listings in eBay).

    Reading through the thread on the Category Dressing contribution it looks like the problem I am experiencing, with it refusing to work, could be due to me trying to use it on something other than sideboxes. - I have the setting in Admin -> Layout Settings -> Categories - Always Show On Main Page set to 1, so currently I have a nice column and row layout but absolutely can not replace the titles with images.
    Last edited by some name not taken; 11 Oct 2008 at 12:52 AM.

  9. #419
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I have found another of your contributions, Images as Titles, which makes things allot clearer. - It now looks as though the problem lies with the Column Layout mod.

    There is a SQL code injection involved with this, and two files:

    includes/modules/custom_template/product_listings.php
    includes/templates/custom_template/templates/tpl_modules_product_listing.php

    Additionally the second file references tpl_columnar_display.php, a default Zen Cart installation file, which looks to be the file I need to modify; however, whenever I try to modify it I keep loosing the footer section of every page on my site...

  10. #420
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Categories Dressing

    Quote Originally Posted by some name not taken View Post
    whenever I try to modify it I keep loosing the footer section of every page on my site...
    This suggests that you are introducing a syntax error causing php to crash. I recommend getting the debug add-in so that you can find precise information about where the error is happening.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

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