Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Banner Ads System Details »»
Banner Ads System
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

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);

    
// print banner ads
    
eval('$bannerads = "' fetch_template('bannerads') . '";');

    
$vbulletin->db->free_result($getads);
    unset(
$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.

Comments
  #242  
Old 07-27-2006, 01:09 AM
calgdsm calgdsm is offline
 
Join Date: Jul 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by burntire
Go to your Banner Ad Template and Replace the highlighted color below with the full URL to banner.php

Example <a href="http://www.yoursite.com/forums/banner.php?

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>
Nope that didnt work either, the link was trying to go to www.sitename.comdo=redirect&bannerid=$ads3
Reply With Quote
  #243  
Old 07-27-2006, 11:09 PM
elliotc elliotc is offline
 
Join Date: May 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi guys!

The mod is great, but can anyone said me how post 2-4 banner on the same time (side by side) on the header, with this plug-in?:ermm:

Thanks for any help!!!
Reply With Quote
  #244  
Old 07-28-2006, 02:45 AM
calgdsm calgdsm is offline
 
Join Date: Jul 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Burntire,
when i put in the full path it made all the banners go to the same url, any thoughts?
Reply With Quote
  #245  
Old 07-28-2006, 09:52 PM
burntire burntire is offline
 
Join Date: Jun 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by calgdsm
Burntire,
when i put in the full path it made all the banners go to the same url, any thoughts?
Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.
Code:
<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
	<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
	<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>
Reply With Quote
  #246  
Old 07-30-2006, 01:37 AM
calgdsm calgdsm is offline
 
Join Date: Jul 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by burntire
Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.
Code:
<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
	<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
	<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>
Ok, im not having a problem with cmps anymore as soon as i added "ads" as a hook good to go.

What the problem is the links are not redirecting to the url, it works in the cp but not on the site.
Reply With Quote
  #247  
Old 07-30-2006, 08:20 AM
PondPikey PondPikey is offline
 
Join Date: Mar 2006
Location: England
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope someone can gelp. Im using a Kartel fixed theme and am unable to get the banners to display, Im pretty sure ive set it up correctly.

Ive amended the global start hook in banner plugin manager. Im using the following to try and display the banners but with the no luck in FORUMHOME

PHP Code:
<td align="right" valign="middle" width=100%>
$bannerads</a><br
Reply With Quote
  #248  
Old 08-01-2006, 08:06 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Can this be placed elsewhere, please see the 3 boxes below the nacbar on my site, i would like this to show in the Partners box (3rd 1)

Is this possible please?
Reply With Quote
  #249  
Old 08-03-2006, 01:11 PM
ZacUSNYR ZacUSNYR is offline
 
Join Date: Mar 2005
Location: Upstate, NY
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool idea - perhaps you can add onto it more?

$banneradnav , $banneradfooter, $banneradheader

And selectable when you add a banner in the admincp?
Reply With Quote
  #250  
Old 08-03-2006, 09:02 PM
dr.science dr.science is offline
 
Join Date: Nov 2002
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been searching everywhere. Can someone please help me to add a flash banner to my site? I have this mod, fully functional on CMPS and all, bt now I just need to enable flash banners to be used.

Thanks!
Reply With Quote
  #251  
Old 08-06-2006, 10:43 PM
burntire burntire is offline
 
Join Date: Jun 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is working fine on 3.6.0.
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 05:55 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.04995 seconds
  • Memory Usage 2,329KB
  • 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_code
  • (1)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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