If this is your first visit, check our documentation. To post, register or login.

Categories Dressing

Started by gjh42 on 6 Jun 2007, 7:25 PM · Views: 532,942

Results 2,201 to 2,220 of 2,268
8 Jul 2013, 11:07 PM
#2201
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2201 by foxchild

Thank you!

8 Jul 2013, 11:10 PM
#2202
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2202 by 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.

tpl_categories.php may be the only file that needs to be reinstalled; the stylesheet you have can stay.

8 Jul 2013, 11:13 PM
#2203
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2203 by foxchild

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?

8 Jul 2013, 11:18 PM
#2204
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2204 by gjh42

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.

8 Jul 2013, 11:23 PM
#2205
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2205 by foxchild

Thank you! I think I tried to reload those before, but will try again and see if that works.

8 Jul 2013, 11:39 PM
#2206
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2206 by foxchild

I reinstalled a clean version of both tpl_categories.php and categories.php and am still not seeing any changes. Any other suggestions?

9 Jul 2013, 3:22 PM
#2207
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2207 by gjh42

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?

9 Jul 2013, 6:40 PM
#2208
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2208 by foxchild

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.

9 Jul 2013, 6:45 PM
#2209
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2209 by foxchild

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!

1 Aug 2013, 7:03 PM
#2211
dreamoutlaw avatar

dreamoutlaw

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Post #2211 by dreamoutlaw

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?

6 Aug 2013, 4:24 AM
#2212
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2212 by gjh42

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

10 Aug 2013, 8:42 AM
#2213
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Post #2213 by rainbow_pixie_star

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

Can anyone help?
Thank you
AmyAttachment 12879

11 Aug 2013, 3:07 PM
#2214
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2214 by gjh42

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

27 Aug 2013, 4:56 PM
#2215
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Post #2215 by ben_harry

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

28 Aug 2013, 12:12 AM
#2216
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Post #2216 by rainbow_pixie_star

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

28 Aug 2013, 4:57 PM
#2217
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2217 by gjh42

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);

28 Aug 2013, 5:18 PM
#2218
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2218 by gjh42

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.

31 Aug 2013, 10:42 AM
#2219
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Post #2219 by rainbow_pixie_star

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 ?>

Attachment 12988

Thank you

31 Aug 2013, 10:48 AM
#2220
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Post #2220 by rainbow_pixie_star

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