I have this little random banner code I've always used through the plugin system, but I can't seem to get it to work on vb4. Can anyone help?
normally, I call for it below the navbar with this...
Code:
<br>
<div style="text-align: center;">
$randombanner
</div>
and this for example, in the plugin area.
Code:
$path = '/forum/images/adbanners/';
$banners = array(
array( 'src' => 'imagine.jpg',
'href' => 'http://www.talkglass.com/'),
array( 'src' => 'waiting.jpg',
'href' => 'http://www.talkglass.com/),
);
$rnd = rand(0,count($banners)-1); // Pick a random array index. They start with 0, so you have to -1.
$href = $banners[$rnd]['href']; // Link HREF
$src = $path.$banners[$rnd]['src']; // Image source
$randombanner = '<a href="'.$href.'"><img border="0" src="'.$src.'" /></a>';
Where should i plug these in now for them to work with the built in ad system. it doesn't work using that.