New Zenner
- Join Date:
- Mar 2008
- Posts:
- 16
- Plugin Contributions:
- 0
Post #2201 by foxchild
Thank you!
New Zenner
Thank you!
Black Belt
I see
<div class="betterCategories"> in your sidebox source code, which shows that you have installed the Better Categories files on top of the Categories Dressing files, wiping them out. You will be unable to get any CD styling or other functionality until you upload the correct files.tpl_categories.php may be the only file that needs to be reinstalled; the stylesheet you have can stay.
New Zenner
gjh42:
I see
<div class="betterCategories"> in your sidebox source code, which shows that you have installed the Better Categories files on top of the Categories Dressing files, wiping them out. You will be unable to get any CD styling or other functionality until you upload the correct files.
I think that was something that I'd had installed in the past. What files specifically conflict with categories dressing so I know which ones to remove?
Black Belt
Categories Dressing only changes one stock file, tpl_categories.php, but it is possible that BC alters another file which controls the sidebox content. /includes/modules/sideboxes/your_template/categories.php would be one possibility. ch_categories.php should be the module file controlling the expanded categories sidebox, though.
New Zenner
Thank you! I think I tried to reload those before, but will try again and see if that works.
New Zenner
I reinstalled a clean version of both tpl_categories.php and categories.php and am still not seeing any changes. Any other suggestions?
Black Belt
As of this morning, you still have the betterCategories version of tpl_categories.php in your custom template folder. Check the locations of files you replaced. What is the exact path (starting with /includes/) to these files?
New Zenner
From what I can see, the file location is /includes/templates/MYTEMPLATE/templates/tpl_categories.php (MYTEMPLATE being my custom file). Unless I'm looking at the wrong thing, I do not see any reference to BetterCategories in there at all.
New Zenner
Just saw that that is the wrong location. I have uploaded a new file to the correct location in sideboxes and am starting to see some changes. I'll dig in and see if that fixed it. Thank you so much!
Black Belt
Yes, putting the categories sidebox file in /your_template/templates/ instead of /your_template/sideboxes/ would make a difference:)
New Zenner
ZC v1.5.0 using Categories Dressing. I cannot hide a top-level category. I don't want to delete it, I just don't want to show it in a sidebox. The red and green buttons in the 'Categories/Products' panels don't seem to work. I tried to run an SQL update, and set the status to 0, but that didn't work either. Any suggestions?
Black Belt
The admin buttons will control the entire function of the category, not just the sidebox display.
See the other thread you posted in for discussion of the issue.
http://www.zen-cart.com/showthread.php?191909-Twitch-Hide-Any-Category
Zen Follower
Hello,
I am having a little difficulty figuring out the code for this plugin. I have attached an image of what I currently have on the left, and how I would like it to look on the right. I cannot seem to get the placements right.
Here is how the code looks...
//example defines - copy & modify for each category desired
define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...');
define ('CAT_BOX_HEADING_1','1|0|||Jewellery making|1');//new list - text headings - style 1
define ('CAT_BOX_HEADING_2','1|0|||Laser cut jewellery|1');//new list - text headings - style 1
define ('CAT_BOX_HEADING_3','1|0|||Scrapbooking and paper craft|1');//new list - text headings - style 1
define ('CAT_BOX_HEADING_4','1|0|||Custom celebration accessories|1');//new list - text headings - style 1
define ('CAT_BOX_HEADING_23','0|1|||Another Heading|2');//no list break - divider and text heading - style 2
define ('CAT_BOX_HEADING_33_34','0|0|||Subcat Heading|3');//simple text heading - style 3
define ('CAT_BOX_HEADING_48','1|0|cathead48.gif|Cat 48 Heading|Buy Now...|3');//image heading and alt text - can be followed by text heading(s)
define ('CAT_BOX_HEADING_52','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_53','0|2||');//divider only - style 2
define ('CAT_BOX_HEADING_FEATURED','0|0|||Featured Heading|3');//no list break - text heading
define ('CAT_BOX_SUBTEXT_23','Subtext for cat 23 escape apostrophe's|1');//subtext - style 1
Black Belt
You have defined CAT_BOX_HEADING_1, 2, 3 & 4, which will insert themselves above category ids 1, 2, 3 & 4, wherever they are located in the menu. You need to look up the actual ids of the categories you want at the top of each section and substitute those for 1-4.
Also, comment out the example defines with // so they don't activate by accident, like this:```php
//define ('CAT_BOX_HEADING_23','0|1|||Another Heading|2');//no list break - divider and text heading - style 2
Zen Follower
Im using 1.5.1 and on the top category the main colour is gradient and shows fine in firefox and on my iphone, but can i get it to work in IE - can i hell :blink: you can see my site at http://www.bodykitsonline.co.uk/subaru any idea's on what code i can use to allow this to work in internet explorer. Thanks
Zen Follower
Hi,
Just had another go at it but I still cannot seem to get it. No matter what I try it does not make any difference to the menu when I check the site.
Thanks
A
Black Belt
Ben harry - You have backgrounds defined using vendor prefixes and IE "filter" only:```
#categories ul a {/top categories/
display: list-item;
/list-style: disc inside url(../images/bullet1.gif);/change to list-style: none; to remove bullet/
background: no-repeat;
border: none;
margin: 0;
padding: 0;
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#444444', EndColorStr='#999999');
background: -moz-linear-gradient(top, #ccc, #F0F0F0); / for firefox 3.6+ /
background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#F0F0F0)); / for webkit browsers */
linear-gradient([ [ [ <angle> | to [top | bottom] || [left | right] ],]? <color-stop>[, <color-stop>]+);
background: linear-gradient(to top, #ccc, #F0F0F0);
Black Belt
Rainbow_pixie_star - I really need to see your site, or at least have a copy of all your relevant stylesheet/defines/etc., to be able to advise.
Zen Follower
Hi,
My site is at craftjam.co.uk I have the design part correct such as colours, font sizing etc (I think). I want it to look like the image in the attachment below the code.
Here is the cat_dressing_defines
<?php /** * * @copyright Copyright 2009 Glenn Herbert * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.gnu.org/licenses/> GNU Public License V3.0 * Categories Dressing v2.7.3 - Glenn Herbert (gjh42) - 20090505 * includes/languages/english/extra_definitions/your_template/categories_dressing_defines.php */ //example defines - copy & modify for each category desired define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...'); define ('CAT_BOX_HEADING_1','1|0||');//new list - no headings define ('CAT_BOX_HEADING_3','1|0|||Major Heading|1|Minor Heading|2');//new list - text headings - multiple levels - styles 1 & 2 define ('CAT_BOX_HEADING_23','0|1|||Another Heading|2');//no list break - divider and text heading - style 2 define ('CAT_BOX_HEADING_33_34','0|0|||Subcat Heading|3');//simple text heading - style 3 define ('CAT_BOX_HEADING_48','1|0|cathead48.gif|Cat 48 Heading|Buy Now...|3');//image heading and alt text - can be followed by text heading(s) define ('CAT_BOX_HEADING_52','0|1||');//divider only - style 1 define ('CAT_BOX_HEADING_53','0|2||');//divider only - style 2 define ('CAT_BOX_HEADING_FEATURED','0|0|||Featured Heading|3');//no list break - text heading define ('CAT_BOX_SUBTEXT_23','Subtext for cat 23 escape apostrophe\'s|1');//subtext - style 1 // //display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination. //only uncomment and set this define if you want to hide cats based on active tree or level // 'active|highest_level|deepest_level' //active: 0=all tops/1=full active tree only/2=active only (all tops when no cat selected)/ //3=full active tree, others per level/4=like 3, active branches only/5=like 1, no tops| //highest_level: 0=all levels/1=no topcats/etc.| //deepest_level: 1=only first subcats/2=first & second subcats/etc. // //define('CAT_BOX_ACTIVE_LEVEL', '0|1|9');//hide top cats //define('CAT_BOX_ACTIVE_LEVEL', '1|0|1');//show only active cats, to first subcat level ?>Thank you
Zen Follower
Please ignore the image below where I put thank you. Not sure how I managed to add that? It is the first image that I need it to look like.
Thank you
A
Tell staff why this post should be reviewed.