Hello,
I use this script for a simple rotating banner in the header:
http://www.vbulletin.com/forum/showthread.php?t=170826
And it works fine.
Now I am trying to put a second rotating banner after the firts post in every thread.
But it does not work. Nothing shows up.
I am replacing all instances of $random_banner with $random_banner2:
Code:
$random_number = rand(1, 4);
$random_banner2[1] = '<a href="http://www.mysite.com"><img src="http://www.mysite.com/banner1.gif" alt="" border="0" /></a>';
$random_banner2[2] = '<a href="http://www.mysite.com"><img src="http://www.mysite.com/banner2.gif" alt="" border="0" /></a>';
$random_banner2[3] = '<a href="http://www.mysite.com"><img src="http://www.mysite.com/banner3.gif" alt="" border="0" /></a>';
$random_banner2[4] = '<a href="http://www.mysite.com"><img src="http://www.mysite.com/banner4.gif" alt="" border="0" /></a>';
And I use this code to displaying the random banner:
Code:
$random_banner2[$random_number]
But it doesn?t work! It?s just empty. Am I doing something wrong?
Please help me!
Regards,
Fredrik_Arvid