Guest Posted February 27, 2014 Posted February 27, 2014 Hi I am looking to change the index page(home), depending on the degree of dificulty. What I am wanting to do is to have the right hand column not show on the index page, but be present on all other pages., Can someonw tell me a) if this is possible, B) and whats required to aceive this. The other alternative is to have the right hand column showing on all pages with the top of the column on the index page being say, 280px from the breadcrum (line) Any thoughts or suggestions would be appreciated. Many thans Grandpa
drferrari Posted February 27, 2014 Posted February 27, 2014 <?php if (basename($_SERVER['PHP_SELF']) !== FILENAME_DEFAULT){ echo "not showing in index page, but be present on all other pages"; } ?>
Guest Posted February 27, 2014 Posted February 27, 2014 Hi Many thanks for that, but I have no idea what to do with the code. Where do I put it. Many thanks Grandpa
Guest Posted February 27, 2014 Posted February 27, 2014 Hi Just a note re the above request. I am using Oscommerce 2.3.3.4 Cheers Grandpa
drferrari Posted February 27, 2014 Posted February 27, 2014 index.php file find require(DIR_WS_INCLUDES . 'column_right.php'); and change to: <?php if (basename($_SERVER['PHP_SELF']) !== FILENAME_DEFAULT){ require(DIR_WS_INCLUDES . 'column_right.php'); } ?> same on product_info.php. if you use in includes/header.php file it's better for e.g. logo or ..... <?php if (basename($_SERVER['PHP_SELF']) !== FILENAME_DEFAULT){ echo "<img border="0" src="images/logo.gif" />" } ?> play with code and you see nice things...
♥joli1811 Posted February 28, 2014 Posted February 28, 2014 Hi have a look http://addons.oscommerce.com/info/8963 Regards Joli To improve is to change; to be perfect is to change often.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.