The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Banner Ads System Details »» | |||||||||||||||||||||||||
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:
HTML Code:
$bannerads 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
|
Comments |
#112
|
||||
|
||||
try using full url to image location, including http://www
|
#113
|
|||
|
|||
Quote:
|
#114
|
|||
|
|||
Quote:
|
#115
|
|||
|
|||
Quote:
I was able to 'fix' this issue by editing the link in my data tables (bannersys_banners) using phpmyadmin. It doesn't really fix the issue, but it at least lets me serve up the ads properly. Brian |
#116
|
|||
|
|||
Installed this today on 3.5.4, works great. If only there was support for flash ads though. Also, is there a reason this won't work on my cmps homepage? In the source it just shows up as
Code:
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td><a href="banner.php?do=redirect&bannerid=" target="_blank""><img src="" width="" height="" border="0"></a></td> </td> </table> |
#117
|
||||
|
||||
You can use conditional in bannerads template to not display the ads in cmps portal.
HTML Code:
<if condition="THIS_SCRIPT != 'your_cmps_script_name'">other banner codes</if> |
#118
|
|||
|
|||
I DO want the ads on my cmps portal, the problem is they aren't working. VB 3.5.4.
|
#119
|
|||
|
|||
Ok, so I edited the global_start hook with the suggested edit and I got a DB error, replaced the code with this to link to the right table, it works, however, I cannot get the $bannerads to show in my templates.... Any ideas?
Code:
// Banner Ads System by tnguy3n if($vbulletin->options['bannersys_mode']) { $getads = $vbulletin->db->query_read("vb3_forum" bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1"); $ads = $vbulletin->db->fetch_array($getads); // print banner ads eval('$bannerads = "' . fetch_template('bannerads') . '";'); $vbulletin->db->free_result($getads); unset($getads); } Code:
</head> <body> $header $navbar $bannerads <!-- main --> I am sure it is right under my nose, I am just dead tired.... :disappointed: :nervous: |
#120
|
|||
|
|||
Hi tnguy3n
Bet ya getting fed up with me Anyway, I have had this installed for quite sometime now and i have just noticed that it says $bannerads in my forum Why would this be showing please? |
#121
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|