surfinagain Posted September 11, 2004 Share Posted September 11, 2004 I need to add php code to TEXT_MAIN in the index.php (main page). Anyone done this or have any ideas? Thanks in advance.... Link to comment Share on other sites More sharing options...
OceanRanch Posted September 11, 2004 Share Posted September 11, 2004 The TEXT_MAIN is just a define for html and text. You could edit the index.php... Find <td class="main"><?php echo TEXT_MAIN; ?></td> and change it to.... <td class="main"><?php require('main.php'); ?></td> Then create your php stuff and place it that file, including text etc. HTH Tom Link to comment Share on other sites More sharing options...
241 Posted September 12, 2004 Share Posted September 12, 2004 you can also depending on the code that you want to add, just add the php code without the php tagging as is done in the original text for the index.php i.e. define('TEXT_MAIN', 'This is a default setup running on ' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . ' osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.'); 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.