![]() |
How do I add a second simple rotating banner?
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); Code:
$random_banner2[$random_number] Please help me! Regards, Fredrik_Arvid |
Try this:
Code:
$random_number2 = rand(1, 4); Code:
$random_banner2[$random_number2] |
Hello Dismounted,
I tried your solution but that did not work. I am putting the code block in Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Postbit Templates -> postbit at the very bottom: Code:
<!-- / post $post[postid] popup menu --> (I have got the first simple banner rotator - the one that works fine - in the footer template.) |
Where are you putting the code block (PHP code)?
|
I am putting it as a new plugin in: Plugin & Products System
|
At which hook?
|
Hook location: parse_templates
|
Is it OK to put it in the pare_templates?
|
Try changing to hook location to global_start.
|
Quote:
|
All times are GMT. The time now is 07:07 AM. |
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:
|