This would allow banners_all to run in the tpl_footer.php ...
You could adapt this to a new group to do the same thing ...
PHP Code:
<!--eof-banner #5 display -->
<?php
// bof: make banners all run in the footer
$bannerscontent = '';
$bannerscontent .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
// select banners_group to be used
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET_ALL);
// secure pages
switch ($request_type) {
case ('SSL'):
$my_banner_filter=" and banners_on_ssl= " . "1 ";
break;
case ('NONSSL'):
$my_banner_filter='';
break;
}
$sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search . $my_banner_filter . " order by banners_sort_order";
$banners_all = $db->Execute($sql);
// if no active banner in the specified banner group then the box will not show
$banner_cnt = 0;
while (!$banners_all->EOF) {
$banner_cnt++;
$banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL);
$bannerscontent .= zen_display_banner('static', $banners_all->fields['banners_id']);
// add spacing between banners
if ($banner_cnt < $banners_all->RecordCount()) {
$bannerscontent .= '<br /><br />';
}
$banners_all->MoveNext();
}
$bannerscontent .= '</div>';
echo 'TEST BANNER ALL:<br />' . $bannerscontent . '<br />';
// eof: make banners all run in the footer
?>
<!--bof- site copyright display -->
Note: you would want to change the classes and such to keep them unique if needed as the variables are not defined ...
Bookmarks