View Full Version : Advertisements
shoer76
03-08-2011, 08:20 PM
Hi,
I'm looking for some help with html for advertising.
I have some banners loaded in my files and I'd like them to show. Can someone give me some basic html that would allow the banners to show in advertisements?
Thanks,
Eric
your24hourstore
03-08-2011, 10:38 PM
is it flash or just pics or html?
<h3 {background-color:#b0c4de;} <center><a href="http://billstile.com/"><img src="images/ads/tile.gif" border="0" alt="Bill's Tile Service"></a>
<center/><h3/>
just change the pic and alt stuff this is a long banner for forum sideblock
--------------- Added 1299631214 at 1299631214 ---------------
<center><img src="images/buttons/flags/Arkansas.gif" style="float:center; margin: 5px;" />
<img src="images/buttons/flags/Oklahoma.gif" style="float:center; margin: 10px;" /> <img src="images/buttons/flags/Other.gif" style="float:center; margin: 15px;" /><img src="images/buttons/flags/Missouri.gif" style="float:center; margin: 10px;" /> <img src="images/buttons/flags/Kansas.gif" style="float:center; margin: 5px;" /><center/>
--------------- Added 1299631270 at 1299631270 ---------------
might give you some ideas on what you need!
shoer76
03-09-2011, 12:15 AM
Thanks for that.
I guess there's no way for advertisements to rotate randomly besides the rotating banners hack?
your24hourstore
03-09-2011, 01:29 AM
sure there is you just have to do some work to make it happen I think i have can make some html that will rotate banners in there, but the ads them selves can be made to show only to some users or class, while showing other to some other class to if you learn to use advertising , you can make them show different ads to different people
--------------- Added 1299641540 at 1299641540 ---------------
don't you use some code like this in that mod, if so just drop the php script into the images ad directory and use this in the ads html
images/titleimage/logo.php
shoer76
03-09-2011, 11:13 AM
Hi thanks for the help.
I managed to get a banner to show using
<img src="banners/vibram.jpg"/>
What I would like to do is add about 10 to 20 of them, have them rotate, and have them linked to a website.
Thanks for any further help!
your24hourstore
03-09-2011, 01:01 PM
ok so use this hack but change it to show the banners https://vborg.vbsupport.ru/showthread.php?t=228130&highlight=rotate
"his instructions show to put it in title image but use these directions", note this all loads up your site and uses bandwidth,
1) You need to upload the file logo.php to the directory of your banner image images/banners/.
2) Then upload the banners you want to rotate to "images/banners/" directory. (Delete example images from this folder else they will be used by rotation script)
---Images must be of all same size else the page jumps as the images gets taller or shorter.
--- Images can be in jpg, gif and png format.
3) Edit the html in ads to use this path as the pic "images/banners/logo.php".<h3 {background-color:#b0c4de;} <center><a href="www.yourwebsite.com"><img src="images/banners/logo.php" border="0"></a>
<center/><h3/>
this code is your ad after you edit it to your site, This should change an ad to a random image on every refresh
shoer76
03-09-2011, 03:26 PM
Sorry I think I misspoke!
I'm just looking to get a random banner to show each time the page is refreshed. Not actually have the banners rotating.
your24hourstore
03-09-2011, 03:30 PM
that will do that it will randomly change banners if you set it up the way i described
it will show any banner it wants in banners as long as they are the same size and of the file type gif jpg or png
shoer76
03-09-2011, 04:11 PM
Thanks got it working.
Only other thing I'm trying to do with it is to have a separate url for each banner. Would that be something difficult to accomplish?
Thanks for your time!
your24hourstore
03-09-2011, 04:19 PM
yes not with that setup, you would have to create a directory for each site you want to send it to then set each one up as you did image/banners/ with the logo.php file and all that see it only rotates what in that directory. So the next one would have images/banners2/
<h3 {background-color:#b0c4de;} <center><a href="www.yourwebsite.com"><img src="images/banners2/logo.php" border="0"></a>
<center/><h3/>
shoer76
03-09-2011, 04:33 PM
Great Thanks!
your24hourstore
03-09-2011, 04:39 PM
lol anytime enjoy
Stefan118
03-10-2011, 10:00 PM
This is also a simple randomizer...
<script language="JavaScript">
images = new Array(4);
images[0] = "<a href = 'http://www.LinkToBannersWebsiteA.com' target='_blank'><img src='http://www.PlaceWhereTheBannerIsStored_a.gif' alt='ALT text'></a>";
images[1] = "<a href = 'http://www.LinkToBannersWebsiteB.com' target='_blank'><img src='http://www.PlaceWhereTheBannerIsStored_b.gif' alt='ALT text'></a>";
images[2] = "<a href = 'http://www.LinkToBannersWebsiteC.com' target='_blank'><img src='http://www.PlaceWhereTheBannerIsStored_c.gif' alt='ALT text'></a>";
images[3] = "<a href = 'http://www.LinkToBannersWebsiteD.com' target='_blank'><img src='http://www.PlaceWhereTheBannerIsStored_d.gif' alt='ALT text'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.