Ok the code is not quite working.
If I use the below I get banner 2 and 3 on the login and home page and banner 3 on every other page.
Code:
<div id="headerpic">
<?php
if (($_GET['main_page'] == FILENAME_LOGIN || $this_is_home_page) && SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
</div>
<?php
if (($_GET['main_page'] != FILENAME_LOGIN && !this_is_home_page) && 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 } } ?>
<?php
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
}
}
?>
If I use the below code I get banner 2 on the login and homepage and banner 3 on no pages.
Code:
<div id="headerpic">
<?php
if (($_GET['main_page'] == FILENAME_LOGIN || $this_is_home_page) && SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
</div>
<?php
if (($_GET['main_page'] != FILENAME_LOGIN && !this_is_home_page) && 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 } } ?>
To be clear I want banner 2 on the login and home page and banner 3 on every page other than those two pages.
Bookmarks