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

Better Categories Contrib & ezpages

Views: 51,777

Results 21 to 40 of 189
31 May 2006, 2:39 AM
#21
john398 avatar

john398

New Zenner

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

Better Categories Contrib & ezpages

gilby:

It seems that for IE6 if only text is used then the text only is used for the link.
but if part of the link is a graphic then the graphic & the text & the any whitespace is also considered part of the link, so the whole cell is used as the link.
FF 1.5 considers all of the cell is the link regardless.
Not sure which is the correct way it is supposed to work.

Attached are tpl_ezpages.php & tpl_information.php updated to include a graphic which in this case is the default graphic used for the BetterCategories. You could change the name of the graphic to use a different one for all 3 sideboxes.

Cheers :yes:

Gilby thanks but for some reason I noticed in your zip you do not have better categories on tpl_information.php, can you repost?

31 May 2006, 3:31 AM
#22
gilby avatar

gilby

Totally Zenned

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

Re: Better Categories Contrib & ezpages

john398:

Gilby thanks but for some reason I noticed in your zip you do not have better categories on tpl_information.php, can you repost?

Just checked (3 posts back) its in there?? or have I misunderstood your query??

These 2 files are additional to the previous files discussed further back in the thread.
Be sure you override correctly the correct files.
If I get some spare time, (no promises when) I should try to put them all together in one zip, should add "more info" page as well to complete the set.

31 May 2006, 3:41 AM
#23
gilby avatar

gilby

Totally Zenned

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

Re: Better Categories Contrib & ezpages

:oops:
Damn not enough time to edit, you're right I missed it :blush:
I'll Try to repost tonight

31 May 2006, 3:43 AM
#24
john398 avatar

john398

New Zenner

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

Re: Better Categories Contrib & ezpages

Thanks, I appreciate it, no rush

8 Jun 2006, 2:09 PM
#25
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Just a little reminder - Please add this mod to the downloads so that others can find it more easily. Thanks!!

9 Jun 2006, 12:53 AM
#26
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

I'm using BetterCategories with the Future_Zen template. This template uses images for the top and bottom of the side boxes. With bettercategories, the top image is there, however, the bottom is not.

Unfortunately, I cannot provide a link to my site as it is on my server.

Can anyone tell me how to make side box images (specifically the bottom) work with BetterCategories?

10 Jun 2006, 2:46 AM
#27
brimsjewelry avatar

brimsjewelry

Zen Follower

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

Re: Better Categories Contrib & ezpages

Can anyone tell me how to turn off the little "l_" figure in the better categories tree?

I know how to do it for the regular categories but it doesnt work with "better categories" and I dont see any reference to it in the style sheet.

Thanks,

Jason

10 Jun 2006, 4:06 AM
#28
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

brimsjewelry:

Can anyone tell me how to turn off the little "l_" figure in the better categories tree?

Thanks,

Jason

If memory serves me correctly, you remove these in the admins/configuration/layout setting. Amend the

Categories Separator between the Category Name and Sub Categories

and possibly this one too.

Categories Separator between the Category Name and Count

cheers and good luck!!

13 Jun 2006, 4:02 AM
#29
berserker avatar

berserker

Totally Zenned

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

Re: Better Categories Contrib & ezpages

Is it possible to make the Information and More Information sidebox to look like better categories?

13 Jun 2006, 4:20 AM
#30
seethrou avatar

seethrou

Totally Zenned

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

Re: Better Categories Contrib & ezpages

Berserker:

Is it possible to make the Information and More Information sidebox to look like better categories?
Yes, its possible.
It have been discussed in other topics, some of thme are in previous archived forum.

14 Jun 2006, 12:25 AM
#31
woodlandsprite avatar

woodlandsprite

Zen Follower

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

Re: Better Categories Contrib & ezpages

fantastic contrib!
question though - I note that the tpl_categories.php references a gif that doesn't come in the install:
pixel_silver.gif

it is supposed to be triggered if the categories separator is turned on...

(I downloaded the "fix" version posted above)

14 Jun 2006, 12:45 AM
#32
woodlandsprite avatar

woodlandsprite

Zen Follower

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

Re: Better Categories Contrib & ezpages

oh - I do have a question.
I have loaded better categories for the following:

  1. categories (of course ;) )
  2. Information Box
  3. EZ Pages (the box that says "galleries")
  4. A massivly tweaked version of "More Info" box.

If you look very closely at the space between the blocks, you will notice that it appears different in the Information box vs the categories box vs the ezpages & More info box.

I would like to figure out what is causing this difference. I like the slightly embossed look of the Information box blocks, but I cannot figure out what is causing this to occur

The other issue I am having is the light colored bars between blocks on the ezpages sidebox do not reach to the edges of the sidebox. I don't know why this is occurring.

TIA for your assistance!

14 Jun 2006, 2:02 AM
#33
woodlandsprite avatar

woodlandsprite

Zen Follower

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

Re: Better Categories Contrib & ezpages

I think I've narrowed it down to this line in the tpl_(insert sidebox name).php files:

$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

if I change the class to betterCategories, I get the fancy "embossed" look, but unfortnately it makes a mess of other things...and I can't figure out how to make it work for tpl_categories.php.

I have to bow to someone else who understands code because I certainly don't!

14 Jun 2006, 3:02 AM
#34
gilby avatar

gilby

Totally Zenned

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

Re: Better Categories Contrib & ezpages

Url please, so we can see whats happening

14 Jun 2006, 4:50 AM
#35
woodlandsprite avatar

woodlandsprite

Zen Follower

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

Re: Better Categories Contrib & ezpages

cripes. how embarassing.
I should update my signature.
http://spritelygoods.com/zencart1301

15 Jun 2006, 4:56 AM
#36
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 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:

16 Jun 2006, 2:35 PM
#37
voltage avatar

voltage

Totally Zenned

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

Re: Better Categories Contrib & ezpages

Attached are tpl_ezpages.php & tpl_information.php updated to include a graphic which in this case is the default graphic used for the BetterCategories. You could change the name of the graphic to use a different one for all 3 sideboxes.
[/QUOTE]

I've uploaded the files but the information sidebox is not displaying correctly. Are you sure that is the complete file you are using?

<?php $content = ''; // fix for IE6 only showing rollovers on text and not the entire cell gilby 19/05/2006 $pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . 'cat_no_sub.gif'); for ($i=0; $i<sizeof($information); $i++) { $content .= $pointer . $information[$i]; } $content .= ''; ?>

and here is the file i have in modules/sideboxes/(my template)

<?php unset($information); $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></div>'; $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></div>'; $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></div>'; $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></div>'; if ( ($sniffer->phpBB['db_installed_config']) && ($sniffer->phpBB['files_installed']) && (PHPBB_LINKS_ENABLED=='true')) { $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link($sniffer->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', '', '', true, false) . '" target="_blank">' . BOX_BBINDEX . '</a></div>'; // or: $sniffer->phpBB['phpbb_url'] . FILENAME_BB_INDEX // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB) } // only show GV FAQ when installed if (MODULE_ORDER_TOTAL_GV_STATUS=='true') { $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a></div>'; } if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') { $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a></div>'; } require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php'); $title = BOX_HEADING_INFORMATION; $left_corner = false; $right_corner = false; $right_arrow = false; $title_link = false; require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); ?>

ANy thoughts why this isn't working? You can see it here http://www.fashionettes.com (site under construction)

16 Jun 2006, 3:12 PM
#38
gilby avatar

gilby

Totally Zenned

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

Re: Better Categories Contrib & ezpages

Its not working because its not picking up the bettercategories info

The first file in the previous post goes in as
includes\templates\YOUR_TEMPLATE\sideboxes\tpl_information.php
Your file seems to be in the correct place

The second file goes in as
includes\modules\sideboxes\YOUR_TEMPLATE\information.php

The second file is not a tpl file. I think you have used the wrong filename??
The thread is a bit disjointed and builds on previous posts and I have been trying to put it all together in one contrib. See if this works.

ps: There are no spaces in "information" but I can't seem to edit them out

16 Jun 2006, 3:38 PM
#39
voltage avatar

voltage

Totally Zenned

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

Re: Better Categories Contrib & ezpages

OK, fixed the problem (well, it IS working, but i'm gonna need to tweek it a bit to get it looking right).

The problem is with the download a few pages back (bettercategoriesfix.zip). The file is saved as information.php.php. I didn't see this as the file extensions are hidden currently on my windows, but I noticed it via my ftp program.

Simple fix. Good for others to know who may be installing the same set of files.

Thank you for your help.

Now does anyone have an answer to this question (posted a few days ago):

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

16 Jun 2006, 4:23 PM
#40
voltage avatar

voltage

Totally Zenned

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

Re: Better Categories Contrib & ezpages

Ok, 2nd problem is the fix for the information page is not correct either. It creates the links like this:

(img) (div)link(div)

The image should appear within the div, not outside of it. However, I'm still trying to figure out how to fix it as my php skills are minimal.