Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DHC Banner Ads - Upgrade [1.4] Details »»
DHC Banner Ads - Upgrade [1.4]
Version: 1.4, by Xenatino Xenatino is offline
Developer Last Online: Dec 2006 Show Printable Version Email this Page

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.

Comments
  #62  
Old 05-28-2005, 01:13 AM
Blue Moose Aaron's Avatar
Blue Moose Aaron Blue Moose Aaron is offline
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My banner will display for a time and then I revisit my site and nothing is showing. So for some reason it is disableing itself..
Reply With Quote
  #63  
Old 05-30-2005, 01:04 AM
Xenatino Xenatino is offline
 
Join Date: Feb 2005
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
also, when I click a banner, its going to www.xxx.com/clickthru.php and NOT /forum/clickthru.php.

So if i move clickthru.php to root then i get error msgs that /.global.php cannot be found.
Download the file attached to this reply and replace the current /includes/functions_bannerads.php file.

It has a few bug fixes and should fix this clickthru.php error.
Reply With Quote
  #64  
Old 05-30-2005, 04:37 PM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blue Moose Aaron
My banner will display for a time and then I revisit my site and nothing is showing. So for some reason it is disableing itself..
open clickthru.php and find:
PHP Code:
if ($Select['limit_type'] == "clicks" && ($Select[clicks]+1) >= $Select[limit_to]) 
replace with:
PHP Code:
if ($Select['limit_type'] == "clicks" && ($Select[clicks]+1) >= $Select[limit_num]) 
how it's currently setup it validates that you are limiting by clicks.. then looks for a nonexistant variable in the database.. returned 0.. and tada, 1 click, ad turns off.
Reply With Quote
  #65  
Old 06-07-2005, 03:12 PM
dennisuello dennisuello is offline
 
Join Date: Mar 2005
Location: Reno, Nevada
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i installed it and followed all the instrucation, now i get:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT displayads FROM usergroup WHERE usergroupid='6'
mysql error: Table 'reno4x4_vbulletin.usergroup' doesn't exist

mysql error number: 1146
Reply With Quote
  #66  
Old 06-07-2005, 03:19 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As the error states "Table 'reno4x4_vbulletin.usergroup' doesn't exist"

Create it

Quote:
Originally Posted by dennisuello
i installed it and followed all the instrucation, now i get:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT displayads FROM usergroup WHERE usergroupid='6'
mysql error: Table 'reno4x4_vbulletin.usergroup' doesn't exist

mysql error number: 1146
Reply With Quote
  #67  
Old 06-07-2005, 03:21 PM
dennisuello dennisuello is offline
 
Join Date: Mar 2005
Location: Reno, Nevada
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my forum worked just fine before this, now i get this error. doesn't this table exist already?

all my tables start with vb3, like vb3_usergroup.

how do i uninstall this hack?
Reply With Quote
  #68  
Old 06-07-2005, 03:30 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to uninstall it you have 2 options.

1) Reinstall the backup of your forum you should do before installing hacks.
2) Follow the instructions in reverse and put the edits etc back as they were.



Quote:
Originally Posted by dennisuello
my forum worked just fine before this, now i get this error. doesn't this table exist already?

all my tables start with vb3, like vb3_usergroup.

how do i uninstall this hack?
Reply With Quote
  #69  
Old 06-07-2005, 03:32 PM
dennisuello dennisuello is offline
 
Join Date: Mar 2005
Location: Reno, Nevada
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
2) Follow the instructions in reverse and put the edits etc back as they were.

what about reversing changes made by "install_bannerads.php"
Reply With Quote
  #70  
Old 06-13-2005, 04:01 PM
Big J Big J is offline
 
Join Date: Nov 2002
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I get the following error when I try to add a banner: Warning: Cannot modify header information - headers already sent by (output started at /home/extreme-/public_html/forums/includes/adminfunctions.php:223) in /admincp/dhcbannerads.php on line 337

im running vb3.0.7

please help.
Reply With Quote
  #71  
Old 06-13-2005, 04:05 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Big J
Hi,

I get the following error when I try to add a banner: Warning: Cannot modify header information - headers already sent by (output started at /home/extreme-/public_html/forums/includes/adminfunctions.php:223) in /admincp/dhcbannerads.php on line 337

im running vb3.0.7

please help.
it still saves up your settings......i have the same error 2....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06893 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete