rkeane85257 Posted April 22, 2008 Posted April 22, 2008 Hello, My category pages have the letter "n" on the page. If their are lets say 10 categories, a row of n's show up. Any help would be appreciated. I have included a link to my store if you would like to take a look. Thanks in advance for your help. www.needleguy.com R Keane Needleguy.com
cmakynen Posted April 22, 2008 Posted April 22, 2008 Hello, My category pages have the letter "n" on the page. If their are lets say 10 categories, a row of n's show up. Any help would be appreciated. I have included a link to my store if you would like to take a look. Thanks in advance for your help. www.needleguy.com R Keane Needleguy.com Shot in the dark here, but check your index.php (root of store). Find this: $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } See those "\n"s in there? I think you may have typed over or lost the "\" in front of each of those. Viewing your source on the DLP Lamps categories page, I see those "n"s being generated like this: <td align="center" class="smallText" width="33%" valign="top"><a href="http://needleguy.com/index.php?cPath=165_184"><br>3M</a></td>n <td align="center" class="smallText" width="33%" valign="top"><a href="http://needleguy.com/index.php?cPath=165_185"><br>Akai</a></td>n <td align="center" class="smallText" width="33%" valign="top"><a href="http://needleguy.com/index.php?cPath=165_186"><br>Beng</a></td>n </tr>n <tr>n See those "n"s in the bolded part? I think what I noted above will fix that - put the \ back in there (or you may even have to put the whole ."\n" - not sure, compare and see.)
Jack_mcs Posted April 22, 2008 Posted April 22, 2008 Hello, My category pages have the letter "n" on the page. If their are lets say 10 categories, a row of n's show up. Any help would be appreciated. I have included a link to my store if you would like to take a look. Thanks in advance for your help. www.needleguy.com R Keane Needleguy.com It is usually because an unpatched filemanager in admin was used. You will need to search your index.php file for all instances of "n" and replace them with "\n" and be sure not to use the filemanager unless it is fixed, assuming that is what caused it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.