lildagg3r Posted April 24, 2004 Posted April 24, 2004 I about to give up trying to clean up default home /catalog/includes/languages/english/index.php page. All i get is parse error and screw's things up. I need a pro to help clean up the junk and set a default Welcom page for me. I follow the default home page guild line on step #2: All i keep getting are errors after errors. Editing Page Texts. The text shown here can be modified in the following file, on each language basis: [path to catalog]/includes/languages/english/index.php That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules. The text is set in the following manner: define('TEXT_MAIN', 'This is a default setup of the osCommerce project...'); The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist: define('TEXT_MAIN', ''); More information concerning the PHP define() function can be read here. ...Here is the index Code... Please help... Install Docs | docsCat | apiStandards | PageIndex
241 Posted April 24, 2004 Posted April 24, 2004 Do not use the online file manager to edit the files as it is known to cause errors instead ftp download the file, edit offline and ftp upload to server. <?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', 'You can have whatever text you want in here as long as you escape any apostrophes with a backslash thus Let\'s '); 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'); } ?> 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.
lildagg3r Posted April 24, 2004 Author Posted April 24, 2004 Steve you just put the faith back in me. The code worked perfectly no errors at all. I will use this as a tool to understand it more as i learn. Thank you so much for your help, You the man. Vote Steve for President !!! Install Docs | docsCat | apiStandards | PageIndex
Recommended Posts
Archived
This topic is now archived and is closed to further replies.