
08-29-2012, 01:06 PM
|
|
|
Join Date: May 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by PyroChixRock
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.
|
Do you know how I can make the links open in a new window using the above code?
|