Quote:
Originally Posted by Revelence
If you're trying to just rotate the banner, you can make a plugin. Here's a plugin that should work.
Code:
ob_start();
$banners = array('banner_1', 'banner_2', 'banner_3');
$rand = rand(0, count($banners) - 1);
echo $banners[$rand];
$php_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('header',array('random_image_background' => $php_include));
Now edit your header template of your theme. Search for where ever the logo is being called at, and replace
Code:
<img src="blablabla" />
with
Code:
<img src="{vb:raw random_image_background}" />
Replace the banner_1, banner_2, and so on with your banners. You can add more then 3, and you don't need more then 1.
|
Could you give me a little more help regarding this post? You say search where my logo is being placed? you mean in my FTP? If so it's in the theme that I'm using so Seamus and misc. Or is there something I've missed? With this Seamus theme I have our clan logo in the left hand side and behind it I have a 1225x300 banner that I'm wanting to have rotate with different banners which is located in the same area but in a background folder.