Version: 1.00, by tnguy3n
Developer Last Online: Sep 2010
Version: 3.5.2
Rating:
Released: 01-03-2006
Last Update: Never
Installs: 210
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
Banner Ads System
Author: Thinh Nguyen (tnguy3n)
Support: www.vbviet.org
###############
Banner Ads System Expanded version supports Adsense, Adbrite, Flash, Inframe, etc.
Click on the link below for more info & to purchase: http://www.vbviet.com/index.php?act=...od&productId=8
###############
This simple rotational banner ads system get random ads from your database and display globally under navbar on your board.
It's been fully tested on vb 3.5.2, but it should work fine for all 3.5 Gold version.
FEATURES:
- Banner stats tracker
- Ability to enable/disable
- Admin ability to add/modify/delete banners
- Admin ability to view banner stats/detail for each banner
- more
#################
STRUCTURE:
- New Files: 3
- New Template: 1
- New db tables: 2
- Product: 1
#################
INSTALLATION:
1. Upload files to appropriate dir in your forumroot
2. UPload product xml file in your Product Manager
#################
If you find this hack useful or wish to sponsor/support future development of the hack, you can donate to
If you need custom version of this hack, pls contact me.
:::::UPDATE:::::
The product xml above will add 2 plugins and the ads stays fixed under navbar. This, however, may not be working with some custom skins if navbar template's codebit are changed. To fix that problem, open Banner System plugin (at global_start hook), replace the whole content with:
PHP 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);
Next step, you'll have to modify some templates in order to display the ads, place this following code:
HTML Code:
$bannerads
anywhere you want to show the ads.
If you want to show the ads globally on your forums, put that code in either header or navbar or footer template.
To enable/disable or change other settings of Banner System: vBulletin Options -> Banner System Settings
- Banner System Mode: yes = enable, no = disable
- Show Banners to Logged In Users: yes = everyone (including logged in users), no = only guests
- Ads In New Window: yes = open in new window, no = open in same window
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
This works perfect in vBulletin v3.6.0 beta 1. Clicked install.
One thing though if you could help. I don't really want the banner ads to be placed under the Navbar. Is there any way I can put the banner ads in the $footer?
I have managed to get the banners to show in my forum home, but I am having the same problem as few poeple here, the dot in the CMS index page.
Would appreciate your help.
Now ... the same issue happens in the arcade that happened on the cmps, i looked for a global portal option, but didnt find any ... how would I go about globalizing $ads in the arcade?
For those using cmps, you need to edit either the Page or the Default Settings for CMPS. In the "Portal Output Global Variables" section, add:
ads
This will load the necessary variables for the banner system.
I cannot find that portal output global variables, I am in the vBadvanced CMPS Templates, and the only "stock" one is adv. portal.. everything else is like buddy lists and what not.. where should i put it? and I put $bannerads right? where do i put it?