pyrameda Posted September 22, 2009 Posted September 22, 2009 Hi osCommerce Community, I have been looking for hours for a solution to this problem with no luck. Any help would be greatly appreciated. I know this is probably a joke for most osCommerce experts on this forum... :) So...I downloaded a template from templatemonster, and the "What's New Here?" box was removed completely (along with all the text at the bottom of it such as "welcome guest...", "this is a default setup...", etc.) I have been trying to figure out a way to restore the text box without any luck. I have seen posts on this forum which discuss how to remove the "What's New Here?" box, but when I try to back-track on them, I cannot find the lines of code that the post refers to. I can only suppose that the people who made the templates completely removed the text, and did not comment it out the way they should have! In any event, any help on how to restore this text box, and any lines of code I may need to add to restore it would help me a lot. Thanking you in advance! Pyrameda
bradybarrows Posted September 23, 2009 Posted September 23, 2009 Hi osCommerce Community, I have been looking for hours for a solution to this problem with no luck. Any help would be greatly appreciated. I know this is probably a joke for most osCommerce experts on this forum... :) So...I downloaded a template from templatemonster, and the "What's New Here?" box was removed completely (along with all the text at the bottom of it such as "welcome guest...", "this is a default setup...", etc.) I have been trying to figure out a way to restore the text box without any luck. I have seen posts on this forum which discuss how to remove the "What's New Here?" box, but when I try to back-track on them, I cannot find the lines of code that the post refers to. I can only suppose that the people who made the templates completely removed the text, and did not comment it out the way they should have! In any event, any help on how to restore this text box, and any lines of code I may need to add to restore it would help me a lot. Thanking you in advance! Pyrameda In the original default osCommerce download v2 go to includes/languages/english/index.php The What's New Here?" is around line 37: define('HEADING_TITLE', 'What\'s New Here?'); The "this is a default setup...", etc. is found at line 13: define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant. Products shown are for demonstrational purposes. <b>Any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>\');</nobr><br><br>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:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Support is available at the <a href="http://www.oscommerce.com/support" target="_blank"><u>osCommerce Support Site</u></a>.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.'); the 'welcome guest' header is found at line 286: includes/languages/english.php
bradybarrows Posted September 23, 2009 Posted September 23, 2009 The "welcome guest..." is found at: includes/languages/english.php at line 286: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');
pyrameda Posted September 23, 2009 Author Posted September 23, 2009 I actually already have all those lines of code in my osCommerce. However, the "What's New Here?" box does not appear on the home page. Is there another place somewhere in the osCommerce code where you have to set whether you want the box to appear or not? Somewhere maybe in the catalog/index.php file? Or maybe somewhere else? Thank you for the quick reply!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.