GsmCorner Posted April 30, 2004 Share Posted April 30, 2004 Hi all, well when i add categories, i keep getting these N's for each categorie i add. As you can see on my url : http://www.gsmcorner.co.uk/catalog/index.php?cPath=44 anyidea which file i need to edit to get rid of these ? Thanks Tom Link to comment Share on other sites More sharing options...
stevel Posted April 30, 2004 Share Posted April 30, 2004 I'll bet you're using the built-in file manager to upload the files. Don't do that - it corrupts files that contain \n. Use a regular FTP client instead. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
GsmCorner Posted April 30, 2004 Author Share Posted April 30, 2004 hi, yeah i had to use it once, anyidea which file i will need to reupload ? Link to comment Share on other sites More sharing options...
stevel Posted April 30, 2004 Share Posted April 30, 2004 Probably only files under includes\languages that you changed. Start with index.php under that folder. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
241 Posted April 30, 2004 Share Posted April 30, 2004 see my other post here Click No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
GsmCorner Posted April 30, 2004 Author Share Posted April 30, 2004 hi 241, i checked the index file and i found a few n's, heres the code while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $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"; } } and while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"'); echo '</form></td>' . "n"; } } is that normal ? checked quite a few other files but cant find anyother n's ?? :( please help :-\ Thanks Tom Link to comment Share on other sites More sharing options...
GsmCorner Posted April 30, 2004 Author Share Posted April 30, 2004 sorted now guys, looked over that code in the index file and missed 1 of them n's.. thanks for all your help Tom Link to comment Share on other sites More sharing options...
241 Posted April 30, 2004 Share Posted April 30, 2004 yes as my post states there are 4 instances of "n"; that should be "\n"; on the catalog/index.php file No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.