Okay, I have yet to get this to work properly. I posted this code:
$banner[1] = "<a href="http://bham-jk.com/showthread.php?1015-Meet-N-Mod-Party" target="_blank"><img src="http://i93.photobucket.com/albums/l72/JOHNNYP4409/MeetNModparty_zps9e808cc0.jpg" border="0" alt="MeetnModParty"/></a>";
$banner[2] = "<a href="http://www.tntaccessoriesnservicecenter.com/" target="_blank"><img src="http://i93.photobucket.com/albums/l72/JOHNNYP4409/TNTBannerBlack.png" border="0" alt="TNTaccessories"></a>>";
$rotator = rand(1, 2);
$bannerrotator = $banner[$rotator];
vB_Template:: preRegister('navbar', array('bannerrotator' => $bannerrotator));
Then put this in the "ad_global_below_navbar" template:
{vb:raw bannerrotator}
Then I get this error:
Parse error: syntax error, unexpected T_STRING in /home/bhamjk/public_html/includes/class_bootstrap.php(430) : eval()'d code on line 1
So, what have I done wrong?
|