Guest Posted February 6, 2009 Share Posted February 6, 2009 Hi all, I have tried, and ive searched, but havent found anything as yet to say how to get rid of the small image in the corner, the welcome text, and the welcome header, and replace it with either an image, or multiple images. Ive seen other OSC sites that impliment this, and would dearly like to do the same. Any help would be most appreciated! Many thanks in advance Rick Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2009 Share Posted February 8, 2009 can anyone help or is this in the wrong section? Link to comment Share on other sites More sharing options...
ricksteruk2005 Posted February 8, 2009 Share Posted February 8, 2009 in your includes/languages/english/index.php you can add html in there where it says define main page ' ' this will still leave the welcome guest log in etc, to remove that you would need to edit the index.php page and find where it says about greeting, then add your html to there. For example <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> You would change like this <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main">HTML HERE</td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> I dont help with templates (thats what the seller is for) th search function will often help, when it dont try this in google. site:http://www.oscommerce.com/forums then your search word Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2009 Share Posted February 9, 2009 Thank you for your reply. I couldnt find any code like that in the "includes/languages/english/index.php" file, though did find the same code listed in the main index.php file. However, when changed, it didnt actually do anything. Any ideas what im doing wrong? Example code change below (lines 298 to 310) : <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main">< if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" align="center" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php </td> Link to comment Share on other sites More sharing options...
ricksteruk2005 Posted February 10, 2009 Share Posted February 10, 2009 in includes/languages/english/index.php find 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>.'); you can remove everything between define('TEXT_MAIN', ' and the final '); and add html in there in your main index.php you need to look for <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> which is around line 299 you can change this to <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main">INSER YOUR HTML HERE</td> </tr> <tr> I dont help with templates (thats what the seller is for) th search function will often help, when it dont try this in google. site:http://www.oscommerce.com/forums then your search word Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.