The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
|||
|
|||
![]()
Here's the simple script (banner.php) I made to rotate banners.
Code:
<?php srand((float) microtime() * 10); $input = array( "<img src=\"$stylevar[imgdir_misc]/banner1.jpg\" width=\"480\" height=\"60\" />", "<img src=\"$stylevar[imgdir_misc]/banner2.jpg\" width=\"480\" height=\"60\" />", "<img src=\"$stylevar[imgdir_misc]/banner3.jpg\" width=\"480\" height=\"60\" />" ); $rand_keys = array_rand($input, 3); echo $input[$rand_keys[0]] . "\n"; ?> Code:
ob_start(); include_once("banner.php"); $randomlogo = ob_get_contents(); ob_end_clean(); Thanks Aurous |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|