The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[Req]: Random Banner Hack
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! |
#3
|
||||
|
||||
well their are random banner hacks made but they dont track how many times they were clicked.
|
#4
|
||||
|
||||
Is it vBulletin integrated? Or can it be? I really don't care about the clicks really, just random banners.
|
#5
|
|||
|
|||
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)
Code:
$bannerrand = rand(1, X); Code:
<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> |
#6
|
||||
|
||||
Thanks alot I'll give it a try.
|
#7
|
||||
|
||||
Quote:
You get code that you can easily add to any of your vBulletin templates. |
#8
|
||||
|
||||
Didn't know. I'm still a noobie at vB but I'm learning
|
#9
|
||||
|
||||
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?
|
#10
|
||||
|
||||
phpinclude_start" template?
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|