
Originally Posted by
DivaVocals
Nice.. As always you rock.. do you have a test site where one can see this in action??
Yes indeed, you made it look really simple 
Couple Questions?
Is that a template file, module file?
If so, where do I put it? and Do I need to create a separate file for each banner group?
Probably not, I now see the code that calls the banner which means it replaces, I mean (does away with) the "stock" code in tpl_main_page.php, tpl_header.php & tpl_footer.php
Do I replace (cont.)
Code:
<?php
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
with all this:?
Code:
<?php
$content = '';
$content .= '<div id="myImages">';
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET1);
// 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_SET1);
$content .= '<div class="eachImage">'.zen_display_banner('static', $banners_all->fields['banners_id']).'</div>';
// add spacing between banners (this is optional so I'm gonna disable it, we can control it from CSS)
/* if ($banner_cnt < $banners_all->RecordCount()) {
$content .= '<br /><br />';
}
*/
$banners_all->MoveNext();
}
$content .= '</div>';
echo $content;
?>
Just asking, for anyone else interested in this thread and looking for a solution?