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
Printable View
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
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'] . '"');
}
Name all the button images you want to see when in the Skull Shop like catimgsk##.gif.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
Glenn you are an angel, thank you so much! That is exactly what I needed!!!!!! You are really a Godsend!
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
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.
Hi Glenn,
Figured it out myself. It looks great now, thanks for all the help i really appreciate it.
Matt
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?
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.
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...