View Full Version : [Req]: Random Banner Hack
EH-Jay
11-05-2004, 04:42 AM
I'm just looking for a random banner hack to show random banners somewhere on the page and it has to work with vb 3.x.x and even maybe show the clicks a banner has had.
I searched the site and couldn't find exactly what I was looking for so I came here to request it.
Hopefully something is out there!
Thanks!
Andreas
11-05-2004, 06:37 AM
I use phpAdsNew (http://www.phpadsnew.com) for this purpose, which is a quite powerful solution IMHO.
Johnny
11-05-2004, 12:46 PM
well their are random banner hacks made but they dont track how many times they were clicked.
EH-Jay
11-05-2004, 03:11 PM
Is it vBulletin integrated? Or can it be? I really don't care about the clicks really, just random banners.
Martin CX
11-08-2004, 01:07 PM
A very easy way of creating rotating banners is by adding the following line in your "phpinclude_start" template (replace X with the number of banners you are rotating)$bannerrand = rand(1, X);and then use the number generated in your template whereever you want the banner, for instance in the "header" template. Example; rotating three banners (X=3 in the code above):<if condition="$bannerrand == '1'">
<a href="Banner 1 hyperlink"><img src="Banner 1 Image URL" /></a>
<else />
<if condition="$bannerrand == '2'">
<a href="Banner 2 hyperlink"><img src="Banner 2 Image URL" /></a>
<else />
<a href="Banner 3 hyperlink"><img src="Banner 3 Image URL" /></a>
</if>
EH-Jay
11-10-2004, 03:26 PM
Thanks alot I'll give it a try.
Colin F
11-10-2004, 03:34 PM
Is it vBulletin integrated? Or can it be? I really don't care about the clicks really, just random banners.
There's nothing to integrate into vBulletin...
You get code that you can easily add to any of your vBulletin templates.
EH-Jay
11-10-2004, 03:36 PM
Didn't know. I'm still a noobie at vB but I'm learning ;)
EH-Jay
11-20-2004, 11:25 PM
It was working then it died. Why is that? Now all 3 images are loading at the same time, not 1 after the other. Any help?
imported_infitech
11-10-2006, 12:14 AM
phpinclude_start" template?
I use phpAdsNew (http://www.phpadsnew.com) for this purpose, which is a quite powerful solution IMHO.
the ads dont siplay on my forums.... i get something saying [ad]
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.