vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=202012

UKBL ~ Timed Rotating Ad Banners
by UKBusinessLive
16 Jan 2009 16:48

6 Attachment(s)
UKBL ~ Timed Rotating Ad Banners

Live Demo http://www.ukbusinesslive.co.uk/forum

I've been wanting to display some banners on my site but i didn't just want the same banner just showing until you go to another page or hit the refresh button, Some people may stay on the forum home for quite some time, This is not the ideal way to display banners, as they'll only see the one ad in all that time.

Well thats about to change with UKBL ~ Timed Rotating Ad Banners :D

Now as Admin you'll be able to make some serious money by showing a wider variety of banners which change after so many seconds, as opposed to changing on refreshes.

You can sign up to a number of affiliate sites and download banners to your forums, a list of affiliate sites to help you is at the end of this post.

https://www.vbulletin.org/forum/external/2009/01/41.png

To install this to your forums is so easy

First you need to edit the code to suit your requirements
Copy the following code to a text editor like notepad or word


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The look for the following....


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Basically what you see is what you get, the top line is the url of your image, you can save it to forums/images/misc or even photobucket, like my example above, The second line is the url to the site, Thats its just repeat this for all the ad banners you have and write up the code. Easy. You can use 2 banners or 200 the choice is yours

https://www.vbulletin.org/forum/
https://www.vbulletin.org/forum/external/2009/01/20.gif
https://www.vbulletin.org/forum/external/2009/08/14.gif
https://www.vbulletin.org/forum/

Then once you've edited your banners and their URL's you need to scroll down to..


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now you need to change the time delay, its in milliseconds, don't forget that, so if you want your ads to change every 10 seconds like the code above, you leave it on 10000, if you want 8 seconds, you need to change the code to 8000 in both lines, likewise 5 seconds = 5000

Then just save the file :D

To install to your Site.

For ease of application i've installed it in the header, right at the end, so heres what to do...

ACP> Style Manager > Your site's style > header

Just copy and paste the entire code that you've just edited and paste it at the very end of the header template, Click save. Thats its

if you experiment you can add these banners to the footer, in the posts and in different forums, Try and see what works for you the most

If you want to try the code first i've included a few banner gif's in the zipped file so you can try.

Affiliate Schemes that Pay YOU!! Some are UK based but have US section too

Commision Junction = http://www.cj.com/
Buy.at = http://buy.at/ (UK) http://www.advertising.com/buyat/ (US)

Plus loads more and details on the zip file :D

Give it a go and see if it works for you, remember to leave a comment and if i can help at all, i will.

If you only want to show banners to un registered members or guests then you could add a condition at the begining like this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With X the id of the usergoup that you want to show the banners to, don forget the add the </if> tag at the end of the script :cool:

Please Remember to click installed :D

UKBusinessLive 16 Jan 2009 16:49

:p Reserved ;)

taherk 29 Jan 2009 11:08

Great mod. Seems like this will work with anything not just vb. Is that true ?

UKBusinessLive 29 Jan 2009 15:47

Quote:

Originally Posted by taherk (Post 1727963)
Great mod. Seems like this will work with anything not just vb. Is that true ?

Hi taherk,

Yes thats right you can just add it to your website just as easy as to your forum :D


All times are GMT. The time now is 02:29.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.