RyanSmith Posted January 20, 2005 Share Posted January 20, 2005 Hello, I need to add a custom box to the entry page (index.php) only. Whats the best manner to see if there on the default home page? Thanks in advance. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there. Link to comment Share on other sites More sharing options...
RyanSmith Posted January 21, 2005 Author Share Posted January 21, 2005 Hello, I need to add a custom box to the entry page (index.php) only. Whats the best manner to see if there on the default home page? Thanks in advance. <{POST_SNAPBACK}> Well just to let anyone know how this is done, this is what I came up with: $s = substr($HTTP_SERVER_VARS['PHP_SELF'], -9); if ($s == 'index.php' && !isset($HTTP_GET_VARS['camp']) && !isset($HTTP_GET_VARS['cPath'])) { require(DIR_WS_BOXES . 'apparel_links.php'); } else { require(DIR_WS_BOXES . 'fast_links.php'); } $HTTP_GET_VARS['camp'] is a custom feature that I had implemented. Fast links and apparel_links are custom boxes that replace the standard categories box. If someone has a more elegant way of doing this, I would love to know. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.