Guest Posted December 10, 2003 Share Posted December 10, 2003 Hi, I am editing the text on my default.php and I am having a few problems. Below is the code from my default.php please can someone let me know whats wrong with it! <?php /* $Id: default.php,v 1.18 2002/01/14 10:34:17 jan0815 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'WELCOME TO PREMIER-DVDUK, WE ARE A UK BASED BLOCKBUSTER MOVIE RESELLER' <b></b>. .<br><br>This shop is based on <font color='#f0000'><b>' . PROJECT_VERSION . '</b></font>.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ($category_depth == 'products' || $HTTP_GET_VARS['manufacturers_id']) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL', 'All'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Also on the actual page I get this error : Parse error: parse error in /home/fantasy/public_html/dvd/includes/languages/english/default.php on line 13 web page address is www.fantasy-angels.com/dvd Many thanks in advance Link to comment Share on other sites More sharing options...
241 Posted December 10, 2003 Share Posted December 10, 2003 define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('HEADING_TITLE', 'What\'s New Here?'); reverse the \ to a / 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...
moonstone Posted December 10, 2003 Share Posted December 10, 2003 On line 13, you have: define('TEXT_MAIN', 'WELCOME TO PREMIER-DVDUK, WE ARE A UK BASED BLOCKBUSTER MOVIE RESELLER' <b></b>. .<br><br>This shop is based on <font color='#f0000'><b>' . PROJECT_VERSION . '</b></font>.'); change to: define('TEXT_MAIN', '<b>WELCOME TO PREMIER-DVDUK, WE ARE A UK BASED BLOCKBUSTER MOVIE RESELLER</b><br><br>This shop is based on<font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>'); You are having too many . and ' at the wrong places. Hope this helps... Link to comment Share on other sites More sharing options...
moonstone Posted December 10, 2003 Share Posted December 10, 2003 define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('HEADING_TITLE', 'What\'s New Here?'); reverse the \ to a / There is nothing wrong with using \ before ' to retain the ' sign. Reversing the slashes will give you even more problems. 241, Please note that I have nothing against you. Just stating the facts... Cool. Link to comment Share on other sites More sharing options...
241 Posted December 10, 2003 Share Posted December 10, 2003 Your absolutly right moonstone, I got my \ directions mixed up. Thanks for putting me right. Totally ignore my comment. There are too many .. 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...
moonstone Posted December 10, 2003 Share Posted December 10, 2003 This is what I like about this forum. Everyone is so professional, and do not take things personal. :P Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.