bigjoed,
The code whiich I used and you copied is to set the banner to SHOW the banner only on the pages listed. The statement says if you are on one of the pages in the array OR you are on the home page, then if the banner is active, SHOW IT. If I understand your question, you are trying to turn OFF the banner on certain pages. Then you would use:
Code:
<?php
if (!in_array($current_page_base,explode(",",'shopping _cart,checkout_shipping,checkout_payment,checkout_ confirmation,checkout_success')) || ($this_is_home_page == 'false')) {
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?><div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}}}
?>
In my case, I wanted the banner to show ONLY on the secure SSL pages, so all I needed was if($request_type == 'SSL').
BTW, YOu should be doing this on a copy of tpl_main_page.php in the override directory??
Bookmarks