kat310370 Posted March 16, 2006 Posted March 16, 2006 Hi it said post new topic somehow i dont think it is. I am trying to delete the default text on index page. Could someone please have a look at the code and see what i have done wrong. I get this error: Parse error: parse error, unexpected T_STRING in includes/languages/english/index.php on line 19 Guess I must have deleted something important. Have reinstalled 4 times now. Well i guess it will cheer someone up if nothing else. Thanks in anticipation of a reply. <?php /* $Id: index.php 6137 2005-05-10 12:59:09Z jim $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ''); 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'); } ?>
Guest Posted March 16, 2006 Posted March 16, 2006 single quotes must be escapedin php strings so strings like this: define('HEADING_TITLE', 'Let's See What We Have Here'); must be: define('HEADING_TITLE', 'Let\'s See What We Have Here');
kat310370 Posted March 16, 2006 Author Posted March 16, 2006 single quotes must be escapedin php strings so strings like this: define('HEADING_TITLE', 'Let's See What We Have Here'); must be: define('HEADING_TITLE', 'Let\'s See What We Have Here'); Thanks for the reply but i am getting this message now. Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sites/thebookwormuk.co.uk/public_html/podcart/includes/languages/english/index.php on line 33
Guest Posted March 16, 2006 Posted March 16, 2006 well I was hoping you would review the other strings you have first. like define('HEADING_TITLE', 'What's New Here?'); are you using the osc old file manager to edit files? You could either upgrade your store or use a regular editor.
kat310370 Posted March 16, 2006 Author Posted March 16, 2006 well I was hoping you would review the other strings you have first. likedefine('HEADING_TITLE', 'What's New Here?'); are you using the osc old file manager to edit files? You could either upgrade your store or use a regular editor. I am using file manager and changing and saving from there. If you have any suggestions on other editors let me know. Thanks
kjelders Posted March 16, 2006 Posted March 16, 2006 I am using file manager and changing and saving from there. If you have any suggestions on other editors let me know. Thanks May I jump in with a question? I have text pad. Do I copy the text on index.php and paste it to Text Pad. Then make my changes, and copy from Text Pad back to the index.php in the File Manager and save it? In file manager, if I change even just one letter in a text and save, my default osCommerce page is blank. :(
Raquel Posted March 16, 2006 Posted March 16, 2006 May I jump in with a question? I have text pad. Do I copy the text on index.php and paste it to Text Pad. Then make my changes, and copy from Text Pad back to the index.php in the File Manager and save it? In file manager, if I change even just one letter in a text and save, my default osCommerce page is blank. :( It's really best to start a new topic. -- I need no warrant for being, and no word of sanction upon my being. I am the warrant and the sanction. Ayn Rand
Raquel Posted March 16, 2006 Posted March 16, 2006 I am using file manager and changing and saving from there. If you have any suggestions on other editors let me know. Thanks Are you using Windows, Linux, Mac? -- I need no warrant for being, and no word of sanction upon my being. I am the warrant and the sanction. Ayn Rand
Recommended Posts
Archived
This topic is now archived and is closed to further replies.