mid9tblue Posted March 1, 2010 Posted March 1, 2010 I have added a new box "add.php" to the left column and needed to modify it even more, right now it's showing everywhere except for product_id page since the way i inserted it. But what i really need is for it to show only on index.php only, only on the home page, but i dont know how. So can any one please help me to modify the code. right now i'm using: if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'add.php'); } I need something like: IF AND ONLY IF HOMEPAGE IS LOADED include(DIR_WS_BOXES . 'add.php'); Please help and thank you
mid9tblue Posted March 1, 2010 Author Posted March 1, 2010 btw besides homepage, for add.php to show under categories "index.php?cpath" is ok, as long as is not showing at products_new.php, specials.php, create_account.php, login.php, contact_us.php and all those others. Thank you
Recommended Posts
Archived
This topic is now archived and is closed to further replies.