TeamRival
24 Jan 07, 03:56
I've started using the template for this message board. It does random images at the top and has 5 left and 5 right. Can I add additonal files up there and it would pull them too or do I need to change coding somewhere to make those new images to be random as well?
Kimber
Hi,
Create the new images and name them logo_left6.gif and logo_right6.gif (carry on with 7..8 etc.)
Now open up wow_alliance.cfg and find this block of code at the top of the file:
// randomize header image
global $template;
$template->assign_vars(array(
'LOGO_LEFT_ID' => mt_rand(1, 5),
'LOGO_RIGHT_ID' => mt_rand(1, 5),
));
Where it says:
mt_rand(1, 5),
Change the 5 to however many images you want for both lines.
vBulletin® v3.6.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.