It worked!!!!!!!!!!!!!!! *is jumping trough the roof of joy*:clap::hug::laugh::clap:
Thank you so much Glenn! You are a star!!!
Printable View
It worked!!!!!!!!!!!!!!! *is jumping trough the roof of joy*:clap::hug::laugh::clap:
Thank you so much Glenn! You are a star!!!
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/
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>';
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?
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.
Thanks for your time. If you every get into saltwater aquariums, look me up. I owe you one :)
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
If you want to skip two or three categories, you can just duplicate the test:If you have more to skip, you can use an explode function:PHP Code:
if ($categories_tab->fields['categories_id'] != 65 and $categories_tab->fields['categories_id'] != 69) {//skip cat id 65 & 69
See the comments at the top ofPHP Code:
if (!in_array($categories_tab->fields['categories_id'], explode(',','65,69,77,123')) {//skip cat id 65, 69, 77, 123
/includes/templates/template_default/common/tpl_main_page.php for a bit more info on this.
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
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";
}