lorisoard Posted June 25, 2004 Posted June 25, 2004 Hi, I was trying to reset the description on my main page and messed up the code somehow. When I tried to put the old file back in, I began getting a parse error. I've gone through the code but only know enough to be dangerous. Could someone please help me? Here is the error I get on the browser page: Parse error: parse error in /home/afternoo/public_html/shop/includes/languages/english/index.php on line 18 Here is the code from that file <?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 © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to Afternoon Delight Books Shopping. Add some spice to your life. No time to read a full length novel but want a quickie...Check out our series of Nooners...'); 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'); } ?> Thanks in advance.
ryanf Posted June 25, 2004 Posted June 25, 2004 you got rid of the { at the end of line 18 Ryan If I was crafty, this would be a funny signature.
vasttech Posted June 25, 2004 Posted June 25, 2004 if ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id']) should be if ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id']) { osCommerce Knowledge Base osCommerce Documentation Contributions
lorisoard Posted June 25, 2004 Author Posted June 25, 2004 Okay, went it and fixed that but am still getting the same error :( Any other ideas? I'll go back over the code again myself, but could really mess it up. <_< Here is it again with the } added. <?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 © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to Afternoon Delight Books Shopping. Add some spice to your life. No time to read a full length novel but want a quickie...Check out our series of Nooners...'); 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'); } ?> Thanks for all your help. Lori
241 Posted June 25, 2004 Posted June 25, 2004 if ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id']) { needs to be if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { 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.