Version: 1.4, by Xenatino
Developer Last Online: Dec 2006
Version: 3.0.7
Rating:
Released: 04-09-2005
Last Update: 04-19-2005
Installs: 52
DB Changes
No support by the author.
Upgrade now available
DHC Banner Ads Hack
This script allows you to manage the banner advertisments on your vBulletin board from within the Admin Control Panel. Currently not integrated with PayPal, NoChex so payment will have to remain seperate, although this is set for later releases.
Features
? Display Banner Ads on every page
? Limit display of ads to so many clicks or views
? Turn off display of ads for certain usergroups
? Count clicks and views through Admin CP
? Keep banner ads in database but dont include them in rotation (ie: If maximum views has been reached)
? Auto deactivate when maximum clicks/views are reached
? Displays stats of ads in specified users control panel
? End date and time for banners (Limit or Unlimited)
? Multiple banners per page, using a locations script
Please don't forget to hit the Install button if you use this hack - It helps me judge how popular this hack is and how far to carry on supporting it
*UPDATE* [17th Apr 05] v1.4 Released! Download new ZIP file and either do fresh install or upgrade from previous version!
v1.2.1 - All queries now include TABLE_PREFIX for boards that use this function
Steps have also been taken to prevent SQL Injection
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Thanks for sharing your work. A few remarks though after a quick view of the code:
- You are not using TABLE_PREFIX in all your queries, so this hack will not work for boards using a table prefix.
- There are some places in the coding vulnerable to SQL injections. Please validate all values before using them in a query.
Just edit your first post and add the file please.
Have done, feel free to delete my reply.
Quote:
Thanks for sharing your work. A few remarks though after a quick view of the code:
- You are not using TABLE_PREFIX in all your queries, so this hack will not work for boards using a table prefix.
- There are some places in the coding vulnerable to SQL injections. Please validate all values before using them in a query.
I thought I had used TABLE_PREFIX wherever I could, I will check again and re-upload. Also, thanks for the advice on SQL injection, will sort all that out now...
Quote:
Does this hack check secondary user groups?
Not in this version no, I will arrange for that to be coded into the next version
Very cool! How about instead of expiring after so many views or clicks, how about also just after so much time? I am interested but it would be really cool to be able to set how long the ad should be active too. Maybe have it show how much time it has left in the AdminCP?