![]() |
UKBL ~ Rotation Iframe adverts
1 Attachment(s)
UKBL ~ Rotation Iframe adverts Now you can add timed rotational adverts 468 x 60 Banners or any other size you want, anywhere on your forums, You can add it in more than one template and have as many different rotating ads as you want. DEMO SITE: http://hearts4horses.net/member_forum/upload/index.php https://vborg.vbsupport.ru/external/2009/03/15.png This hack works in two parts, some of the code is written by Dyamic Drive so please keep the credits intact if you use. ;) Installation 1. Download the iframeads.zip 2. Firstly open the advertiser.txt file in notepad and find the following Code:
<iframe id="tickermain" src="http://ukbusinesslive.co.uk/forum/adverts.htm" width=486 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe> Thats all you need to do on that file so now save your edits and open the adverts.htm file in notepad. You'll see the first part of the code is like this Code:
<script language="JavaScript1.2"> Code:
//configure delay between changing adverts (5000=5 seconds) now we come to the addition of the Advertising banners. First you need to do a little bit of work, making each banner clickable and pointing to an url, so for this we'll use a simple bit of code below Code:
<a href="URL GOES HERE"><img src="picture.jpg"></a> Code:
<a href="http://ukbl.co.uk" target="_blank"><img src="http://i475.photobucket.com/albums/rr114/ukbusinesslive/topHeader.gif" border=0></a> Secondly, we have added border=0 to the end of the Image url, This prevents a url border from showing, so make sure this is added to each advert code. Once you've made all your ads clickable then ad them to the end of the adverts.htm code like my example below Code:
<!--ADD YOUR ADVERTISEMENT CONTENT BELOW, by wrapping each one inside a <DIV> as shown below.--> Code:
<!-- ADD clickable banner code ADVERT #1 HERE---------------------> A quick tip to see if your adverts.htm file is working, just click on it in your desktop and you'll see your ads rotating :D Now, for the uploads Firstly, The adverts.htm file which you've just added your ads to, need to go into the forum root directory, once uploaded you can test it by going to http://yourforum.com/adverts.htm You should see your banners rotating, if so then alls well ;) Next we need to go to our admin cp and in your styles header, we need to add the small call up file which we saved as advertiser.txt. So open up this file again in notepad and copy and paste to the end of your styles Header. Now when you go to your forum you should see your ads rotating nicely. You can be more adventurous and add the call up code to any template you want, each time your adds will show anywhere in your forums, You can of course duplicate the code and with an additional .htm code on your forums root, you'll be able to have more banners showing, different sizes etc.. Hope you enjoy this simple addition If you click Install then i'll support you 100% :D If you've installed this on your site, drop me a PM and i'll add it to the Live Demo at the begining of this post ;) |
:D reserved :rolleyes:
|
Good work, thank you......
Installed |
your mod is not working at all if i use js script code from adsense
pleasehelp |
itmessup the firefox and disable every forum threads :(
|
Another UKBL winner. Installed and used in the vb Side Column mod. Works great!
|
doesn't works for me on 3.8 i could've done something wrong. The url works fine but when i add it, it makes a mess of the whole header.
|
Quote:
http://hearts4horses.net/member_forum/upload/index.php Great work, with such a simple hack, well done ;) |
Quote:
|
i've got the same problem as maidos...
chrome and explorer visualize all correctly but firefox show only the advertising and then the footer, all forum is cutted away... any solution? |
All times are GMT. The time now is 07:39 PM. |
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:
|