Sowdy Posted September 17, 2005 Posted September 17, 2005 Hi Everyone, I have a question, it may seem complex but here goes; I'm working with a template, is there a way I can place a banner below the breadcrumb and have it alternate between 5 or 6 different banners? I want to have recommended products but I want the to change with every page, is this possible? Cheers, Dave.
Sowdy Posted September 17, 2005 Author Posted September 17, 2005 Hi Everyone, I have a question, it may seem complex but here goes; I'm working with a template, is there a way I can place a banner below the breadcrumb and have it alternate between 5 or 6 different banners? I want to have recommended products but I want the to change with every page, is this possible? Cheers, Dave. <{POST_SNAPBACK}> Sorry guys....computer froze and I ended up double posting....sorry
Jack_mcs Posted September 17, 2005 Posted September 17, 2005 Find the code that displays the banner and do something like this if (basename($PHP_SELF) == FILENAME_DEFAULT) DISPLAY BANNER 1 else if (basename($PHP_SELF) == FILENAME_PRIVACY) DISPLAY BANNER 2 else DISPLAY BANNER 3 Using a switch statement might be a better to go but the result is the same. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.