Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #72  
Old 06-13-2005, 04:15 PM
Big J Big J is offline
 
Join Date: Nov 2002
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
it still saves up your settings......i have the same error 2....

It's not saving my settings. I also cant see the DHC Banner System option links in the nav, the phrases are not displaying. All I have are empty, clickable boxes.
Reply With Quote
  #73  
Old 06-13-2005, 04:16 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
It's not saving my settings. I also cant see the DHC Banner System option links in the nav, the phrases are not displaying. All I have are empty, clickable boxes.
no no trust me it does.....and as for the phrases i had to twik the index in adminc instead of making it look for the phrases (for some reason it doesnt) i put up the word myself here's what i did and it works fine :

//Banner
construct_nav_option("Banner View", 'dhcbannerads.php?do=view', '<br />');
construct_nav_option("Banner Add", 'dhcbannerads.php?do=add', '<br />');
construct_nav_option("Banner Settings", 'dhcbannerads.php?do=settings', '<br />');
construct_nav_group("DHC Banner System", '<hr />');
//Banner
Reply With Quote
  #74  
Old 06-13-2005, 10:27 PM
Aeolian_X Aeolian_X is offline
 
Join Date: Jun 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx/xxx/xxxx/xxxx/xxxx/forum/includes/adminfunctions.php:223) in /admincp/dhcbannerads.php on line 313
Getting this same error, but the settings do seem to save. Though I still am not seeing any banners on the forum pages.
Reply With Quote
  #75  
Old 06-13-2005, 10:30 PM
Big J Big J is offline
 
Join Date: Nov 2002
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Miss!
Reply With Quote
  #76  
Old 06-13-2005, 10:57 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
Thank you Miss!
np :nervous:
Reply With Quote
  #77  
Old 06-13-2005, 10:57 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 Aeolian_X
Getting this same error, but the settings do seem to save. Though I still am not seeing any banners on the forum pages.
make sure that when u put up the banner code into your forum sometimes in the header template....that you put up example : number 1 make sure that when u add the banners from teh admincp make sure you put 1 in location...
Reply With Quote
  #78  
Old 06-14-2005, 02:37 AM
Aeolian_X Aeolian_X is offline
 
Join Date: Jun 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
make sure that when u put up the banner code into your forum sometimes in the header template....that you put up example : number 1 make sure that when u add the banners from teh admincp make sure you put 1 in location...
Ah Ha!!! That's Beautiful! lol! Thank You Very Much MissKalunji.
Reply With Quote
  #79  
Old 06-14-2005, 03:46 AM
Densit5 Densit5 is offline
 
Join Date: Apr 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Checked why my click throughs were not working - totally missing the URI and found this code:-

Back up your file before you edit it please!


functions_bannerads.php

Code:
Find
Around line 39 

global $DB_site, $banner_ad;

Replace

global $DB_site, $banner_ad,$vboptions;

Find
Line 77 - 79
 
case "image":
	$banner = "<a href=\"clickthru.php?uid=$ad[uid]\" target=\"_blank\"><img src=\"$ad[banner_image]\" height=\"$ad[height]\" width=\"$ad[width]\" border=\"0\"></a>";
break;

Added the full url code to the clickthru links - This should also work for people that have VB advanced installed, since i have it too :lick: 
Replace

case "image":
	$banner = "<a href=\"$vboptions[bburl]clickthru.php?uid=$ad[uid]\" target=\"_blank\"><img src=\"$ad[banner_image]\" height=\"$ad[height]\" width=\"$ad[width]\" border=\"0\"></a>";
break;

Find
Line 95 - 102

case "other":
	$banner = $ad['other_code'];
	$url_code = "clickthru.php?uid=" . $ad['uid'];
	$banner = str_replace("{url}", $url_code, $banner);
	$banner = str_replace("{image}", $ad['banner_image'], $banner);
	$banner = str_replace("{height}", $ad['height'], $banner);
	$banner = str_replace("{width}", $ad['width'], $banner);
break;

Replace

case "other":
	$banner = $ad['other_code'];
	$url_code = "$vboptions[bburl]clickthru.php?uid=" . $ad['uid'];
	$banner = str_replace("{url}", $url_code, $banner);
	$banner = str_replace("{image}", $ad['banner_image'], $banner);
	$banner = str_replace("{height}", $ad['height'], $banner);
	$banner = str_replace("{width}", $ad['width'], $banner);
break;
This hack is nice but will not work on "other" for google addsense javascripts until you change the case "other" code.
Reply With Quote
  #80  
Old 06-14-2005, 08:23 PM
Aeolian_X Aeolian_X is offline
 
Join Date: Jun 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've noticed that my banners do not stay active. Not sure what's causing it, but I have had to recheck the Active box three times now.

I'd still like a fix for this too.

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx/xxx/xxx/xxx/xxx/forum/includes/adminfunctions.php:223) in /admincp/dhcbannerads.php on line 304
Reply With Quote
  #81  
Old 06-14-2005, 08:28 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 Aeolian_X
Ah Ha!!! That's Beautiful! lol! Thank You Very Much MissKalunji.
n e time glad i could help
Reply With Quote
Reply

Thread Tools

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 11:31 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.05877 seconds
  • Memory Usage 2,312KB
  • 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
  • (1)bbcode_code
  • (8)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