Zen Cart Logo
Forums / All Other Contributions/Addons / Better Categories Contrib & ezpages

Better Categories Contrib & ezpages

Views: 51,777

Results 41 to 60 of 189
16 Jun 2006, 10:35 PM
#41
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Better Categories Contrib & ezpages

I've also attempted to make this work with the documents category sidebox. The following code sets up the css correctly, but I wasn't able to get the last part of the tpl_categories file to work which defines the pointer images (so this partially works, just no images).

<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_document_categories.php 2975 2006-02-05 19:33:51Z birdbrain $ */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; for ($i=0;$i<sizeof($box_categories_array);$i++) { /* if ($box_categories_array[$i]['has_sub_cat'] or $box_categories_array[$i]['parent'] == 'true') { $new_style = 'category-parent'; } else { $new_style = 'category-child'; } */ switch(true) { case ($box_categories_array[$i]['top'] == 'true'): $new_style = 'category-top'; break; case ($box_categories_array[$i]['has_sub_cat']): $new_style = 'category-subs'; break; default: $new_style = 'category-products'; } $content .= '<div class="betterCategories"><a class="' . $new_style . '" 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">' . $box_categories_array[$i]['name'] . '</span>'; } else { $content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>'; } } else { $content .= $box_categories_array[$i]['name']; } if ($box_categories_array[$i]['has_sub_cat']) { $content .= CATEGORIES_SEPARATOR; } $content .= '</a>'; if (SHOW_COUNTS == 'true') { if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) { $content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX; } } $content .= ''; } $content .= '</div>'; ?>
17 Jun 2006, 12:16 AM
#42
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

voltage:

If you use the arrow pointers (or custom pointers in my case) the images push the text (the category name) slightly lower than the pointers. I've been racking my brain trying to figure out how to apply padding to the text alone so I could make it level with the pointer image. Any ideas . . . :Flush:

I had been playing around with that as well. I managed to get the display to work correctly by spliting the line into 2 divs. One for the image & one for the text. It looked great and the rollovers worked, but the link wouldn't work.

So I went back to THIS on a test site. Not happy, looks awful, I need to read up a bit more on php. :down:

17 Jun 2006, 12:34 AM
#43
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Better Categories Contrib & ezpages

Yeah, I lied. My fix below for the document category doesn't work. It applies the css classes but it doesn't open up to the subcategories. Still working on it . . .

18 Jun 2006, 7:46 PM
#44
dvdguy avatar

dvdguy

New Zenner

Join Date:
Jun 2006
Posts:
19
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

I have a hard time getting IE and firefox to display the same. I'm getting close, and I think the problem above about aligning text and image gave me the solution - take out the padding and apply a line-height.

For aligning text and an image something like this might work:

.betterCategories {
border-top: 1px solid #003366;
background-color:#99FFFF;
border-top: 2px solid #ffffff;
/* padding: 4px; */
color: #CC00CC;
line-height: 24px;
vertical-align:middle;
}

Just tested and it isn't working in IE - argh.

18 Jun 2006, 11:09 PM
#45
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Please note that clint had released a updated file for zc v1.3.x
in the Archive-Contributions - Bettercategories, in the post #109,
http://www.zen-cart.com/forum/showpost.php?p=194266&postcount=109
It is more updated than the one in the fix package which based on zc v1.2.x.

.

19 Jun 2006, 12:32 PM
#46
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Better Categories Contrib & ezpages

Holy crap! This is getting confusing. Everyone has a link to their own version of this mod, there are support threads everywhere. If the author doesn't upload the updated contribution the downloads section I'm going to in order to save us all some headache.

19 Jun 2006, 12:57 PM
#47
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

By follow this contribution, I can only tell, clint and ch3141 is the two members who maintain or update this mod instead of the original author. However, its before the setup of the new forum. :smile:

.

19 Jun 2006, 2:31 PM
#48
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Just finished, I hope :smile:

betterCategoriesEzInfo!!!

Download from my sig until the download section is up again.

Once the download section is working I will start a new thread.

This is completly rewritten for Zen-cart v1.3.0.1
This version is not backwardly compatible with previous Zen-cart versions

Provides betterCategories features to Categories, Documents, EZpages, Information and MoreInformation sideboxes.

Provides full and separate if required css control of all sideboxes.

Individual images for all sideboxes.

Adjustable spacing between images and text.

Please try and let me know of any errors before I upload here.

Enjoy :D

20 Jun 2006, 2:57 AM
#49
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Better Categories Contrib & ezpages

For some reason I can't get this to work with the documents sidebox. I tried to get this to work before, and had the same result that I am having now (I have since restored the file in modules/sideboxes and templates/sideboxes, and the uploaded your document_categories tpl file). What is happening is that when I click on the main category (Women's Clothing), the down arrow appears, but the subcategory does not. Any ideas of what could cause this?

To see it: http://www.fashionettes.com/womens-clothing-c-3.html

Thanks for the updated contribution by the way!

20 Jun 2006, 3:38 AM
#50
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Not sure, my inital impression is that there is a product in there in that category.

You aren't supposed to have a sub category & product in the same category. I'll check my set up and test!

20 Jun 2006, 4:21 AM
#51
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Just tested further, works fine.
See my dummy site

Be aware of a particular behaviour with documents.

The sub cats when first created must be then edited to appear only in "document General", otherwise they won't appear at all.

Has nothing to do with this or any mod, its standard behaviour

Hey!! this could be good for creating "hidden" categories and products!!

20 Jun 2006, 9:49 AM
#52
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Just fixed a bug with Document Categories sidebox, (wouldn't validate).

Added "better" Bestsellers to the contrib.

Available from my sig until uploads are reinstated.

21 Jun 2006, 7:25 PM
#53
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

I loaded the better Categories to my web site but now when i click on one of the categorie link it realoads the whole page can some tell me why it does this did I do some thing worng here is the site

http://www.viktorviktoriashop.com/theshop/

21 Jun 2006, 10:24 PM
#54
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

How else should it work? It always reloads the entire page!!

ps: your information sidebox is messed up & needs reloading :ohmy:
or
if you downloaded the "Bettercategoriesfix.zip" you need to rename information.php.php to information.php

21 Jun 2006, 11:50 PM
#55
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Better Categories Contrib & ezpages

If you don't want it to appear that the whole page reloads, install 1.3. Only the items that change appear to reload. (BTW you header is over 200kb, I try to keep sites under 100kb in total, you have over 200kb in the header alone which makes it very slow).

8 Jul 2006, 12:01 AM
#56
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: Better Categories Contrib & ezpages

Would any of the pro coders of this forum tell me how I show the SUB-CATS without the background? I only want buttons on the top-categories, so when it opens the subcats, they will just be on the bared background.

Like in my site

Thanks in advance.

8 Jul 2006, 4:38 AM
#57
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

I'm not sure what you are after!! :unsure:

If you have already achieved the look that you want in your store you must now how you got it that way.

I must need more sleep, could you please explain again what you want to change about the way the categories already work on your site?

8 Jul 2006, 7:18 AM
#58
neontetra avatar

neontetra

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Is Better Categories compatible with Zen Cart 1.3.0.1? And do I have to have be using EZ pages to implement it?

8 Jul 2006, 7:26 AM
#59
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

NEONTETRA:

Is Better Categories compatible with Zen Cart 1.3.0.1?
Yes (BetterCategoriesEzInfo that is)

NEONTETRA:

And do I have to have be using EZ pages to implement it?
No

Pick & choose only the sideboxes that you want to alter

8 Jul 2006, 7:39 AM
#60
neontetra avatar

neontetra

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Thanks gilby, you've put my mind at ease.

Unfortunately I can't tell if it's worked on the cart I'm working on as I have a permissions problem on the server I'm using.

I've uploaded all relevant files as per the readme file but can't write the file 'information.php' because of these permission problems.

I am just testing it on the Information box first, then if succesful, will apply it to my categories box. I presume (being completely new to all this) that the file 'information.php' is the integral file that would allow me to see that these changes have taken place?