mcsexburger Posted June 25, 2004 Posted June 25, 2004 I accidently saved over my master index file... obviously now I've stuffed something up, and it says: "Parse error: parse error, unexpected T_STRING in /home/addict/public_html/shop/includes/languages/english/index.php on line 16" what's a t_string? any help is appreciated, thanks =) <?php /* ?$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2003 osCommerce ?Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to the Design Antics Shop! We offer quality handcrafted jewellery at almost half the price of current retail jewellery. Just sit back, relax, and brwose through our online catalogue for elegant, funky or retro accessories suitable for any occasion.<br> We also love to get feedback, so please feel free to leave a review once you have made a purchase.') 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') || (isset($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_CATEGORIES', 'All Categories'); ?define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { ?define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { ?define('HEADING_TITLE', 'Categories'); } ?>
OceanRanch Posted June 25, 2004 Posted June 25, 2004 Two things, 1. It looks like you saved using the FileManager editor. There is a bug that strips out \'s and causes problems. You'll need to edit your files with another editor, or edit locally and upload them to your server. 2. Change define('HEADING_TITLE', 'Let's See What We Have Here'); to define('HEADING_TITLE', 'Let\'s See What We Have Here'); and change define('HEADING_TITLE', 'What's New Here?'); to define('HEADING_TITLE', 'What\'s New Here?'); Hope this helps. Tom
241 Posted June 25, 2004 Posted June 25, 2004 also ?define('TEXT_BUY', 'Buy 1 \''); ?define('TEXT_NOW', '\' now'); but if you follow Tom's advice in regards to editing and not using the online file manager you will have less issues. p.s. Hi Tom :D 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.