![]() |
Show a rotating banner ad for specific user id's
This is a simple ad script that will enable you to place as many ads as you want into your forums, and this script will automatically rotate your banners for you so you won't clutter up the forums by having banners stacked on top of each other or side by side.
This will also make sure to only display the person viewing the forums if they are a member of: Usergroup 1: Unregistered / Not Logged In Usergroup 2: Registered Users Also a small text link below the banner gives the user an incentive to click on the small link to become a paying member to disable the ads on your forums. I'm also aware that VB has ad hooks installed, but many of us are using a custom style, so it makes it a little easier sometime to add scripts like this. I recommend using a banner ad (468 x 60) as pictured. You can also increase or decrease the number of banners it displays by changing: var how_many_ads = 3; & copying and pasting a new ad section within the javascript. Find in header template: (usually at very bottom) $ad_location[ad_header_end] and after add: Code:
<!-- Begin Ad --> Text in red can be customized to better suite your forums. *SCREEN SHOT ATTACHED* Also please be aware that my site is [NWS]. -Enjoy! |
thanks
is this code changing between the banners when i refresh the page ? is this code make the pages Valid XHTML or not ? |
Quote:
Yup, you only will see one banner at a time, everytime you refresh a new one will be there. You can add as many banners as you would like. As far as being a valid XHTML document, I guess to better answer that is this code works properly and am not having any issues at this time. |
All times are GMT. The time now is 03:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|