Heres how to show banners within the header of your forums and how to get it to work to show correctly on your CMPS page.
First replace all the content of the Banner System plugin (at global_start hook) with this code below:
Code:
// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{
$getads = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
$ads = $vbulletin->db->fetch_array($getads);
$searchtext = '<!-- / banner ads -->';
$vbulletin->templatecache['header'] = str_replace($searchtext,
$searchtext.fetch_template('bannerads'), $vbulletin->templatecache['header']);
$vbulletin->db->free_result($getads);
unset($getads);
}
Then edit your header template and place the following code where you would like your banners to appear.
Code:
<!-- / banner ads -->
Lastly add banner.php to your Header Replacement settings in your CMPS settings.
Note if you want to place the banners within your footer, replace templatecache value from header to footer, add the code where you want to show your banners, then add banner.php to your Footer Replacement settings.
Thats it! Enjoy.
Also I'm having a problem of my own. The settings to edit banners does not show in the control panel. I only see the settings that you would see under banneradmin.php?do=settings .
If I want to edit my banners I have to manually enter the url to banneradmin.php?do=manage
Seems like the cpnav_bannersystem.xml file isn't working correctly for me. Anyone know how to fix this? I can't get around the problem with entering the urls myself but I rather be able to do it in the admin control panel.