Thare Posted February 12, 2009 Posted February 12, 2009 On my home page http://www.salemaze.com I have a line displaying TEXT_MAIN underneath the 'welcome guest' line. How do you remove it? I've checked all index pages etc, and I am also using the STS system.
rocdy Posted February 12, 2009 Posted February 12, 2009 On my home page http://www.salemaze.com I have a line displaying TEXT_MAIN underneath the 'welcome guest' line. How do you remove it? I've checked all index pages etc, and I am also using the STS system. may be you can try to edit file index.php in languages/english/index.php there are define('TEXT_MAIN', 'Main text that you want to write down'); if you don't want to write main text below the welcome quest! make sure you not delete the define, just set it like this : define('TEXT_MAIN', ''); //(left it emty if you don't want the main text) and do the same editing at the other language to.ok Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-)
Thare Posted February 12, 2009 Author Posted February 12, 2009 The source for my english/index.php file is as follows: there seems to be no define'TEXT_MAIN' as far as i can see <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TABLE_HEADING_NEW_PRODUCTS', 'New Products'); 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', ''); 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', 'Sorry, we currently have none of these products available'); define('TEXT_NO_PRODUCTS2', 'Sorry, this manufacturer currently has no products available'); 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', ''); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', ''); } ?>
rocdy Posted February 12, 2009 Posted February 12, 2009 The source for my english/index.php file is as follows: there seems to be no define'TEXT_MAIN' as far as i can see <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TABLE_HEADING_NEW_PRODUCTS', 'New Products'); 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', ''); 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', 'Sorry, we currently have none of these products available'); define('TEXT_NO_PRODUCTS2', 'Sorry, this manufacturer currently has no products available'); 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', ''); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', ''); } ?> hah. that it's. the original oscommerce should have the define('TEXT_MAIN', 'main text that you want to write down'); so, make one define like this: <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ''); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-)
Punkey Posted February 13, 2009 Posted February 13, 2009 Hi, I want to remove: Let' see what is new here. I find it in the same page you are now; if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); How do I get rid of it without messing up anything else? :blush: Thanks. OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!!
rocdy Posted February 13, 2009 Posted February 13, 2009 Hi,I want to remove: Let' see what is new here. I find it in the same page you are now; if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); How do I get rid of it without messing up anything else? :blush: Thanks. ok,just delete the Let\'s See What We Have Here define('HEADING_TITLE', ' '); and if you want to puts some word, just do like the example below: define('HEADING_TITLE', 'example bla bla bla'); tips-don't ever delete the define or your webpage side will have some missing word. Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-)
Thare Posted February 15, 2009 Author Posted February 15, 2009 Ahh awesome:) thanks very much, worked a treat, that's been bugging me for a long time lol.
Punkey Posted March 1, 2009 Posted March 1, 2009 ok,just delete the Let\'s See What We Have Here define('HEADING_TITLE', ' '); and if you want to puts some word, just do like the example below: define('HEADING_TITLE', 'example bla bla bla'); tips-don't ever delete the define or your webpage side will have some missing word. OK, I did that! Nothing happened! It looks exactly like => define('HEADING_TITLE', ' '); Let' see what we have here is still there! I also need to take out extra space that is there. Please advice. OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.