Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,605

Results 481 to 500 of 2,268
31 Dec 2008, 10:19 PM
#481
dynamicduo avatar

dynamicduo

New Zenner

Join Date:
Dec 2008
Posts:
10
Plugin Contributions:
0

Categories Dressing

Glenn, you helped me out once already on a different site. thanks so much.

I am trying to apply the same principles on a second site
https://www.nwamopeds.com/scooterstore

but my catBg1 and catBg1hover are not visible, and they are creating a huge space.

What do I do?

Thanks!

1 Jan 2009, 9:57 AM
#482
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

It took a while to find it, but the problem is not with any of the Cat Dressing styles; you are missing a } on```
.searchBoxContent {
background-image: url(../images/searchbox_container.gif);
image-repeat: no-repeat;
padding: 0em 3.8em;

Add a } after```
#seShipTo {
	padding: 0.2em;
```and you will see a whole lot more changes. The missing } causes everything below it in the stylesheet to be ignored.
(The second one ended up below the cut & pasted Cat Dressing rules. You should delete it from there.)
13 Jan 2009, 4:57 PM
#483
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Categories Dressing

You have created such a wonderfully customizable/flexible do-all for nearly everyone's needs. Congrats!

I just read through the last 20 pages of threads here and have read through the readme.html & the notes in the files and am now more confused then when I started.

www.liberty-flag.com

What I want to do (I Think) is relatively simple but as I said above, I am confused by all the flexibility.

Al I want is Top Level Categories to be unlinked (or linked) headers with background images, just like the original (and removed) "Categories" header.

The second level categories expanded/listed under the top level category headers.

I would like to play with exploding the sub level categories, but this mod should all but eliminate most of my 3rd level cats.

And all automatic, I don't want to have to edit the tpl_categories.php every time I add - change - or move sub-cats around.

Similar to attachment, Is this possible? Could you help me build it?
Thanks
JOhn ><>

13 Jan 2009, 10:41 PM
#484
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Cat Dressing won't get separate boxes as you show (though there is a trick with images I just thought of that could give that appearance), but the rest of the layout is easy.
Since Liberty Flag has a plain background, the image trick could work.

As for "automatic", there will always be a certain amount of individual attention needed. Since the headings are not actual category groups, but attached to the one category below the heading, you need to make sure that category stays the first in its group.

You will need to give each category a sort order. I suggest giving all flags sort orders of 1xx, flagpoles 5xx, street banners 10xx, etc. Be sure of the order you want the groups to display in, as it will be time-consuming to change that later. Skipping top numbers allows a group to be inserted later. Likewise, sort the categories in a group like x00, x05, x10, x15, etc.

Example:
For Flagpoles, move all the subcats up to be top cats, and give them sort orders as desired. Make "Architectural Alum" sort order 500, and in tpl_categories.php, in the switch ($current_path) { section, add a new case block (say Architectural Alum are in cat id 420):```php
switch ($current_path) {
case '23': //replace number with your desired cPath
//$content .= '<hr class="catBoxDivider" />' . "\n"; // to add divider uncomment this line
$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') . '</span>':'Heading 1</span>' . $disp_block_head) . "\n";
break;
case '420': //replace number with your desired cPath
//$content .= '<hr class="catBoxDivider" />' . "\n"; // to add divider uncomment this line
$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') . '</span>':'Architectural Alum</span>' . $disp_block_head) . "\n";
break;
}

You would add to your stylesheet something like:

.catBoxHeading1 {background: #669900 url(../images/your_standard_cat_heading_bg.gif) no-repeat;}

or if you want to have a complete heading image with unusual text, name it cathead420.gif and save in your template's /images/ folder.
22 Jan 2009, 5:59 PM
#485
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

Hi Glen, and everyone.

Could anyone please tell me why i'm getting a space under my categories in the category sidebox, i'm trying everything and nothing seems to get rid of it...?

I'm guessing there's a break too many in the sidebox.php but i can't find what to remove...?

https://www.toys-r-ok.com

22 Jan 2009, 10:46 PM
#486
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

You don't appear to be using Cat Dressing, which already removes the <br /> that causes this.
You have made the links display: block; and duplicated the breaks already in the code.

Look at Change Catagories Layout, post 8, for exactly where to remove the <br />.

23 Jan 2009, 12:43 AM
#487
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

Thanks for the reply Glen.

I am indeed using categories dressing 2.2.

Now you mention it though i have all the files in my site, however i've just looked at the image for 'bullet1.gif' and its red triangle, and the image i have on the website is small green ciircle.

Do you think i did something wrong on installing?

I followed the link you provided but my code already has those breaks missing from it? no need to alter anything.

I also put 'display:block;' into the stylesheet and nothing?

When i installed the mod i simply followed the instructions, changed the file name to 'classic' as i have not changed this in my zen-cart and dragged it accross in core ftp. I am assuming this is correct? everything is there in the files, i'm now wondering if everything is in the right files.

Any ideas...?

Thanks for the help so far also.

23 Jan 2009, 1:12 AM
#488
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

You don't have stylesheet_categories_dressing.css - did you copy the content of that into your main stylesheet? And your categories link classes are not what I would expect to see for a Cat Dressing text link setup. View source shows this```html

<div id="categoriesContent" class="sideBoxContent"> <a class="category-top" href="http://www.toys-r-ok.com/index.php?main_page=index&cPath=1">Hardware</a><br />

<a class="category-top" href="


Check the actual locations of the files.
23 Jan 2009, 1:18 AM
#489
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

The blue dot (same color as the text) shows that you have the links set as display: list-item;
The dot is the default for a list item without a defined icon.

23 Jan 2009, 8:19 PM
#490
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

Thanks anyway Glen, appreciated. However i can't install this at all. I just don't get it............i renamed the file and copied it over into core ftp and all the files are indeed there.

I also copied the tpl file over to where all the other tpl files are after the initial install did not work and i've copied the images and and css into the images and main css after the initial install did not work for them.

I'm obviously missing something do basic...? i have a fresh instal of the classic template and all i've done so far is remove borders and paddings as i like using images to do all the work.

Apart from that.......thats it, i've not changed anything with it.

26 Jan 2009, 1:18 AM
#491
triplexxx avatar

triplexxx

New Zenner

Join Date:
May 2008
Posts:
31
Plugin Contributions:
0

Re: Categories Dressing

hi glenn

i try and try but is not working for me :(

i'm trying to replece a categorie name in my categories box with a image

i have categories dressing and in tpl_categories i have this

// categories dressing - category name mods
$cat_name_display = $box_categories_array[$i]['name'];
$cat_img_bg = '';
// categories dressing - display image if exists for category name
if (file_exists(DIR_WS_TEMPLATE_IMAGES . 'catimg' . $current_path . '.gif')) {
$cat_name_display = zen_image(DIR_WS_TEMPLATE_IMAGES . 'catimg' . $current_path . '.gif');
// categories dressing - display background image if exists for category name
} elseif (file_exists(DIR_WS_TEMPLATE_IMAGES . 'catbg' . $current_path . '.gif')) {
$cat_name_display = '';
$cat_img_bg = ' catBg' . $current_path;
} else {
$cat_img_bg = '-text';//append to main classname
}
$content .= '<a class="' . $new_style . $cat_img_bg . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
if ($box_categories_array[$i]['current']) {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent">' . $cat_name_display . ($disp_block == '<br />'?'</span>':'');
} else {
$content .= '<span class="category-subs-selected">' . $cat_name_display . ($disp_block == '<br />'?'</span>':'');
}
} else {
$content .= '<span class="category-not-selected">' . $cat_name_display . ($disp_block == '<br />'?'</span>':'');
} // category name mods

i put my images for test in /includes/templates/template_default/images with the names of catbg205_206.gif and catbg205_206hover.gif the categorie that i'm doing this test is main_page=index&cPath=205_206 i also add this to my css

#categories a {
background-repeat: no-repeat;
display: block;
}

a.catBg205_206 {
background-image: url(../includes/templates/template_default/images/catbg205_206.gif);
height: 30px;
}

a.catBg205_206:hover {
background-image: url(../includes/templates/template_default/images/catbg205_206hover.gif);
}

and nothing happend not changes at all :(

thank you

26 Jan 2009, 6:53 AM
#492
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

/includes/templates/template_default/images

You should not be using /template_default/ to save your custom template files in any case; they should be in /includes/templates/your_template_name/images/.

The Categories Dressing code looks in /your_template/images/ for the file, and does not look in /template_default/images/ ever. Move the files to the correct folder and it should work, as you appear to have done everything else right.

27 Jan 2009, 1:31 AM
#493
triplexxx avatar

triplexxx

New Zenner

Join Date:
May 2008
Posts:
31
Plugin Contributions:
0

Re: Categories Dressing

hi

i moved images to classic template now i see the .gif image but the rollover effect is not working

i have an image with the right link to the categorie but no hover effect

27 Jan 2009, 6:21 AM
#494
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

From the information you have given, I can't see any reason why it wouldn't work. Can you give a link to see your site live? That often allows diagnosis when no amount of description will.

27 Jan 2009, 5:49 PM
#495
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

Glen...........big thanks.......

Got it working now i left it a little while and went back to it. I simply had to transfer the files over manually because of the structure of the files.

Its working now, obviously i have not done much but i will have a play later.

CHEERS.........................................

https://www.toys-r-ok.com

27 Jan 2009, 9:21 PM
#496
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

You might want to hold off on serious work on the categories box, as I am a day or two away from officially releasing a major upgrade to Categories Dressing which will make modifications considerably easier.
By all means play with it for a while now.

28 Jan 2009, 12:18 AM
#497
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

Thanks for the info................i'll hold off as there's plenty other stuff to sort on this site for now.

As soon as i know of the update i'll install it, properly this time.:smile:

28 Jan 2009, 10:39 AM
#498
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Categories Dressing v2.5 has been submitted to Free Addons. Until it is activated, you can download it from this post.

This is a major update, with much of the logic separated out into function files, which will hopefully ease the way to adaptation to ZC v2.0. I have built in some features that have been requested repeatedly in the forum, principally the ability to make separate categories boxes (though they will still be lined up in one column) and the ability to hide top, sub or inactive categories (though this is not an "expanded categories" function).

Various function improvements;
Categories now structured as ul lists;
Multiple language support built in;
Category active/level control added;
User settings all moved to define file.

You can group categories under desired headings, and style the groups as

separate boxes.

You can use multiple languages just by adding a new set of images and

definitions.

You can control which categories display, by active cat tree, or by level,

hiding top and/or subcats.

All of these changes are controlled by modifying defines in one language

file; no user code changes are required in the template file.

Image file naming system unchanged, so images from previous mod versions
will work as-is.

I have tested this thoroughly on my local test site (in FF3 and IE6), but I would appreciate feedback from the field.

28 Jan 2009, 7:38 PM
#499
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

While writing the above post, I thought of a way to enable ids for the individual category groups, so that they can be styled and moved independently of the rest of the sidebox.

This is now tested and integrated into the code, and will be released as v2.6, since the dev team's lightning-fast response has already approved v2.5. I have a bit of housekeeping to do with the file headers, and then I will post v2.6 here when I submit it.

28 Jan 2009, 11:36 PM
#500
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

great news, i just upgraded to 2.5, only just installed it.....should i play or wait for 2.6, when roughly will you be releasing it...?

cheers glen and all involved looks great.