Gibbon Posted January 30, 2005 Share Posted January 30, 2005 Ok, ive searched and read how to change the main text! and so, all i do is goto includes/languages/english/index.php and changed the main_text to define('TEXT_MAIN', 'Hello'); and now all i get is: Parse error: parse error, unexpected T_STRING in /home/sites/gilnet.co.uk/public_html/myshop/includes/languages/english/index.php on line 20 How come?? Thanks Best regards Andy G Link to comment Share on other sites More sharing options...
♥ozcsys Posted January 30, 2005 Share Posted January 30, 2005 Ok, ive searched and read how to change the main text! and so, all i do is goto includes/languages/english/index.php and changed the main_text to define('TEXT_MAIN', 'Hello'); and now all i get is: Parse error: parse error, unexpected T_STRING in /home/sites/gilnet.co.uk/public_html/myshop/includes/languages/english/index.php on line 20 How come?? Thanks Best regards Andy G <{POST_SNAPBACK}> Post your file The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
Gibbon Posted January 30, 2005 Author Share Posted January 30, 2005 Yup sure! ....hmm, not sure how you attatch it, so..heres all the text taken from index.php <?php /* $Id: index.php,v 1.2 2004/07/29 08:34:06 jim Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Hello'); 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 Best Regards Andy Link to comment Share on other sites More sharing options...
Guest Posted January 31, 2005 Share Posted January 31, 2005 single quotes for these lines: define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); Link to comment Share on other sites More sharing options...
Gibbon Posted January 31, 2005 Author Share Posted January 31, 2005 Thanks, but they must have been like that before as i have not changed them, but i have now and ...still doesnt work :( It worked with the defualt text, and all i have done is change it to hello!! Any more help? Regards Andy G Link to comment Share on other sites More sharing options...
♥ozcsys Posted January 31, 2005 Share Posted January 31, 2005 Thanks, but they must have been like that before as i have not changed them, but i have now and ...still doesnt work :( It worked with the defualt text, and all i have done is change it to hello!! Any more help? Regards Andy G <{POST_SNAPBACK}> My guess is you are using the file manager in your osC admin. DO NOT !! It strips your files and causes problems. You need to edit your file locally then ftp it to your server. If you do not have a php editor then you can use notepad. The following code should work <?php /* $Id: index.php,v 1.2 2004/07/29 08:34:06 jim Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Hello'); 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'); } ?> The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
Gibbon Posted January 31, 2005 Author Share Posted January 31, 2005 Oh, yea i am editing using the admin. Ill try using ftp. Thanks Link to comment Share on other sites More sharing options...
Gibbon Posted January 31, 2005 Author Share Posted January 31, 2005 Tut! That was it! Thanks guys! Regards Andy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.