Zen Follower
- Join Date:
- Mar 2007
- Location:
- Cornwall - uk
- Posts:
- 462
- Plugin Contributions:
- 0
Post #1001 by ben_harry
In reply to your post number 995
gjh42:
Even if you don't think you edited it, it's the only reasonable source for the extra character. You should have this:```php
$content .= cat_ul_manage(0, $prev_cat_depth, 0) . '</ul>' . "\n";
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
> Maybe your site is somehow misreading the "\n" after the '</ul>'?
> That is only a view source formatting character and should not be displayed on the website screen.
Looking through the code on my other site [www.southwestmotorsport.com](http://www.southwestmotorsport.com) which luckily still had this mod live i found that the above code on mine was
$content .= str_repeat('</ul>',$prev_cat_depth+1);
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\1";
I simply replace my code with yours and hey presto the little error has gone.
Thanks