Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbBannerRotator Details »»
vbBannerRotator
Version: 1.1.0, by Frapegliko Frapegliko is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.2 Rating:
Released: 10-17-2006 Last Update: 02-14-2012 Installs: 1118
Template Edits
Code Changes  
No support by the author.

This is the first vbulletin Banner Rotator written in PHP that works with none Errors.
You can add Adsense, Adbrite, Banners or what you want.

- 2 Banner Rotator Sets added in product-bannerrotator-two.xml
- 1 Banner Rotator Set added in product-bannerrotator.xml

Version: 1.1.0
- No Template needs to create
- Second Set of Banners added (max 5 Banners)
- Import max 10 Banner Codes (vBulletin options)
- Enable or Disable vbBannerRotator & Banners (vBulletin options)

Version: 1.0.1
- Uncached templates fixed
Installation:

1. Download and Install this Product
1a. Click here to Install
2. Open your Header, Footer or what you want
3. Add $GLOBALS[bannerads] for Set 1 (max 10 Banners)
3a. Add $GLOBALS[banneradstwo] for Set 2 (max 5 Banners)
4. Go to vbBannerRotator in vBulletin Settings and insert your Codes
5. And Finish

Update: (since v.1.0.0 & 1.0.1)

1. Backup your Bannercodes from template: bannerbns
2. Restore (Delete) Template: bannerbns
3. Overwrite Old Product Version with New
4. Open your Header, Footer or what you want
5. Add $bannerads
6. Go to vbBannerRotator in vBulletin Settings and insert your Codes
7. And Finish

Demo:

Click Install

Show Your Support

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

Comments
  #72  
Old 10-29-2006, 05:31 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this track clicks to different banners?
Reply With Quote
  #73  
Old 10-29-2006, 07:36 PM
d1150488 d1150488 is offline
 
Join Date: Feb 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those wanting to reference this variable in the postbit template you need to use...

$GLOBALS[bannerads]

Rather than

$bannerads

This has been driving me mad. Its to do with the scope of these variables in the postbit template....
Reply With Quote
  #74  
Old 10-30-2006, 02:37 AM
rezapci rezapci is offline
 
Join Date: May 2004
Location: U.S.K.C.
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for great hack, but I have a problem, when people click on hacks, the page well go like this http://www.domain.com/forum/adsurl error 404!

I am using this code
Quote:
<a href="www.islamicbookstore.org.uk" target="_blank" class="banner"><img src="http://www.absocs.com/advert.jpg" width=136 height=37 border=2></a>
what should I do?
Reply With Quote
  #75  
Old 10-30-2006, 08:00 AM
Iamjine Iamjine is offline
 
Join Date: Mar 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm new to vBulletin.

I've downloaded the XML files but I don't know how to get them installed.

Would someone please show me ?

Thanks
Reply With Quote
  #76  
Old 10-30-2006, 08:53 AM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Iamjine
I'm new to vBulletin.

I've downloaded the XML files but I don't know how to get them installed.

Would someone please show me ?

Thanks
go to http://www.yousite.com/admincp -> log in -> Plugins and products -> Products -> add new plugin (on the bottom of the page) -> browse -> submit.

THEN you go to the template manager in adminCP unde styles and templates and in the template drop-down you select "edit templates", then you doubbleclick the template you want to add the banners to and you write $bannerads or $banneradstwo at the location in the code that you want the banners to show up.
Reply With Quote
  #77  
Old 10-31-2006, 11:54 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, please add $GLOBALS[bannerads] to the Installinstructions.

With that it is working everywhere and still at navbar, footer etc. !

(Postbit, vBadvanced, Arcade etc.)
Reply With Quote
  #78  
Old 11-01-2006, 09:47 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody out there ?
Reply With Quote
  #79  
Old 11-01-2006, 03:45 PM
sunnycher sunnycher is offline
 
Join Date: Mar 2005
Location: FL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, If I want this banner to be to the RIGHT side of the forum, on top of ALL pages, how do I do this?
If you go to www.lgpphotographers.com/forum
I want the banner to rotate right above the convention banner.

Any ideas?

THANK YOU FOR THIS!
Reply With Quote
  #80  
Old 11-02-2006, 04:34 AM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AdminCP -> Styles and templates -> Template Manager (or whatever, top link in that menu) -> << >> OR the top choice in the drop-down, does not matter, it's the HEADER template you want and that just happens to be in both places.

Take this:

Code:
<!-- logo -->
<a name="top"></a>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="27"><img src="images/LGP/q1.jpg" border="0" width="27" height="182" alt="" /></td>
  <td width="100%" background="images/LGP/q3.jpg">
   <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td width="100%"><img src="images/LGP/header3.jpg" border="0" width="234" height="182" alt="ProPs - ProPhotogs.com" /></td>
     <td align="center"><ad what="zone:1" /><p><a href="http://www.lgpphotographers.com/convention/convention.htm"><img src="./images/convention.jpg" align="center" border="0"></a></p></td>
    </tr>
    </table>
  </td>

  <td width="28"><img src="images/LGP/q2.jpg" border="0" width="28" height="182" alt="" /></td>
 </tr>
 <tr>
  <td width="27" background="images/LGP/q4.jpg"></td>
  <td width="100%">
<!-- /logo -->
And change to something like this:

Code:
 <!-- logo -->
<a name="top"></a>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="27"><img src="images/LGP/q1.jpg" border="0" width="27" height="182" alt="" /></td>
  <td width="100%" background="images/LGP/q3.jpg">
   <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td width="100%"><img src="images/LGP/header3.jpg" border="0" width="234" height="182" alt="ProPs - ProPhotogs.com" /></td>
     <td align="center">$GLOBALS[bannerads]<br><ad what="zone:1" /><p><a href="http://www.lgpphotographers.com/convention/convention.htm"><img src="./images/convention.jpg" align="center" border="0"></a></p></td>
    </tr>
    </table>
  </td>

  <td width="28"><img src="images/LGP/q2.jpg" border="0" width="28" height="182" alt="" /></td>
 </tr>
 <tr>
  <td width="27" background="images/LGP/q4.jpg"></td>
  <td width="100%">
<!-- /logo -->
Reply With Quote
  #81  
Old 11-02-2006, 08:16 AM
FPR FPR is offline
 
Join Date: Oct 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome code.

How do I add the banner below the nav bar?

Cheers
FPR
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:12 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.04766 seconds
  • Memory Usage 2,319KB
  • 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
  • (2)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
  • (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