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
Banners & Ads System Details »»
Banners & Ads System
Version: 1.02, by AnhTuanCool AnhTuanCool is offline
Developer Last Online: Sep 2006 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-18-2005 Last Update: 01-27-2005 Installs: 108
DB Changes
 
No support by the author.

Banners & Ads System
---------------------------------
by AnhTuanCool

Fully Tested on vb 3.0.5

Description:
Banners & Ads System allows you to have a slot on every pages in your forum for showing banners and ads. Banners and ads in database will randomly pickout to show everytime new page is loaded. Admin options in admincp allow you to fully administrate your banners and ads.

Feautures:
- Show Random Banner or Ad on everypage
- Clickable Link (of course )

Admin Feautures:
- Master Switch on/off
- Fully Add/Edit/Delete Banners, Ads Factors (such as title, dimension, links, etc...)
- Enable/Disable Banners To Be Shown (if you set Disable to a banner, it will not show)
- Banner Template Layout Alterable
- Show Banner Anywhere on your global templates

Updates:
Jan 28th - Add update to display banner anywhere rather than the nav

Install Instruction and Screenshots:
See attachments.

If you find this hack useful, also get informed by any new release & update, please click INSTALL. Thanks,

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 03-05-2005, 02:55 PM
serg serg is offline
 
Join Date: Feb 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still can't figure out how to install this thing. anyone??????
Reply With Quote
  #103  
Old 03-06-2005, 02:30 AM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried this edit to set up two banners. My entire site crashed when I made this change. I uploaded the previous global.php and all is well. I did it twice to see if I missed something. Same effect.

Also, when I place the banner on the left or center there is a blank gap below the banner. When I put it on the right there is no gap and less wasted forum space.

Any thoguhts?

Great hack by the way!!!

The is the error I get

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT title, html, url, type, status, width, height FROM banners WHERE status = '1' AND adid != ORDER BY RAND() LIMIT 1
mysql error: You have an error in your SQL syntax near 'ORDER BY RAND() LIMIT 1' at line 1

mysql error number: 1064

Date: Saturday 05th of March 2005 11:33:41 PM
Script: http://www.my-site.com/forum/
Referer:
Username: My name
IP Address: my ip







Quote:



@PAWS - 1. Install the Update which I attached as txt file at this thread
2. Do this:
In your forumroot/global.php
Look for the whole code you've put in your global.php and REPLACE it with
PHP Code:
// Start banner rotating by Anhtuancool
if ($vboptions['enbanners'])
{
    
// select random banner and display it
    
$getbanner $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " TABLE_PREFIX "banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
    
    eval(
'$banner = "' fetch_template('banner') . '";');
    
$avoidid $getbanner['adid'];
    unset(
$getbanner);

    
// select random banner and display it secplace
    
$getbanner $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " TABLE_PREFIX "banners WHERE status = '1' AND adid != $avoidid ORDER BY RAND() LIMIT 1");
    
    eval(
'$banner2 = "' fetch_template('banner') . '";');
    unset(
$getbanner);
}
// End banner 
Save, and place $banner2 in the footer or wherever you want your second banner slot to show up.
Reply With Quote
  #104  
Old 03-08-2005, 07:01 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice ! Thx ....
Reply With Quote
  #105  
Old 03-08-2005, 07:37 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the last ++++ i ever seen .... in IE everything is ok. If you use Firefox you will see that this Hack isn?t HTML Valid. irate:
Reply With Quote
  #106  
Old 03-11-2005, 05:56 AM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour
This is the last ++++ i ever seen .... in IE everything is ok. If you use Firefox you will see that this Hack isn?t HTML Valid. irate:

I use FireFox 1.0.1 and it runs fine.
Reply With Quote
  #107  
Old 03-13-2005, 12:41 PM
drex drex is offline
 
Join Date: Feb 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GREAT HACK!

Is there a way to add click tracking (not who clicks, just how much per ad) to follow the amount of clicks on the ads?

Would be a great addition to this awesome hack.

See it in action at www.x5world.com
Reply With Quote
  #108  
Old 03-16-2005, 01:07 PM
bos98 bos98 is offline
 
Join Date: Mar 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK this thing is great, works like a charm but......

I cant get it to load on my portal.....

the site is www.blackberry101.com

check it out and let me know, i tried inserting $navbar in the portal template, i tried inserting the code for the banner directly.....

I am stumped

Edit:

To be more clear, the banner is loading via the Navbar template using $banner,

on every page this works fine, but on the portal.php page which is using vBadvanced CMPS system it will not load, i have checked the source code after loading the portal page and it just seems to be ignoring the $banner variable within the navbar template.....

I can make the banner load if i put it directly in my header code....but i really dont want to do this if i dont have to
Reply With Quote
  #109  
Old 03-16-2005, 01:27 PM
bos98 bos98 is offline
 
Join Date: Mar 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

forget it i just put it in the header, not wasting any more time
Reply With Quote
  #110  
Old 03-16-2005, 03:26 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Bos,

Forum looks great!

Did you see the second text file?

Under the main File and instructions, there is directions to install elsewhere.

Check it out, it's easy!
Reply With Quote
  #111  
Old 03-21-2005, 04:23 PM
Starsurfer Starsurfer is offline
 
Join Date: Aug 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible for me to add a javascript randomiser in there? Please tell me, the code I have is:
<script language="JavaScript" src="http://impgb.tradedoubler.com/imp/pool/js/63240/1069018" charset="ISO-8859-1"></script>
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:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05681 seconds
  • Memory Usage 2,318KB
  • 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_php
  • (1)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