The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
i have read all that i have been able to find on these forums about the process.
i created the following: plugin hook: global_start title: Random Adbar Images php: Code:
ob_start();
include('http://www.pocketpcer.com/forums/includes/php_files/adbar.php');
global $adbar;
$adbar = ob_get_contents();
ob_end_clean();
Php include file Code:
<?php $adbar_pos1 = rand(1,3); $adbar_pos2 = rand(1,3); $adbar_pos3 = rand(1,3); $adbar_pos4 = rand(1,3); ?> <table width="728" height="77" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img src="http://www.pocketpcer.com/forums/images/ads/pocketpc-ad1-<?php echo $adbar_pos1?>.gif " width="184" height="77" alt=""></td> <td> <img src="http://www.pocketpcer.com/forums/images/ads/pocketpc-ad2-<?php echo $adbar_pos2?>.gif" width="180" height="77" alt=""></td> <td> <img src="http://www.pocketpcer.com/forums/images/ads/pocketpc-ad3-<?php echo $adbar_pos3?>.gif " width="181" height="77" alt=""></td> <td> <img src="http://www.pocketpcer.com/forums/images/ads/pocketpc-ad4-<?php echo $adbar_pos4?>.gif " width="183" height="77" alt=""></td> </tr> </table> |
![]() |
|
|