2011-12-17, 02:04 PM
2011-12-17, 02:30 PM
2011-12-17, 02:40 PM
I'm testing it but I don't think that it works in the theme that I'm using. You can check it here: http://www.forumanime-pt.com/index.php
I want to make the big banner rotative, not the logo (ForumAnime-PT...etc).
I want to make the big banner rotative, not the logo (ForumAnime-PT...etc).
2011-12-17, 02:54 PM
Point the banner location to a PHP file with this content:
<?php
$rand = rand(1,howevermanyimagesyouhave);
$images[1] = "http://www.forumanime-pt.com/images/alphagaming/mainpic.png";
$images[2] = "http://www.forumanime-pt.com/images/alphagaming/mainpic2.png"; //etc
header("Content-Type: image/png");
echo file_get_contents($images[$rand]);
?>
2011-12-17, 03:06 PM
you can use this...
http://community.mybb.com/thread-107892-...#pid785573
and remove <center></center>
http://community.mybb.com/thread-107892-...#pid785573
and remove <center></center>
2011-12-17, 03:08 PM
Thanks, Paul H, it worked.
The only problem is the loading time, but I guess that it's because of the size of the images.
The only problem is the loading time, but I guess that it's because of the size of the images.
2011-12-17, 03:12 PM
Hmm, it might be faster if you replace
with
header("Content-Type: image/png");
echo file_get_contents($images[$rand]);
with
header("Location: {$images[$rand]}");
2011-12-17, 03:19 PM
That way the banner only changes when I refresh the forum with F5, for example. The first code that you gave me it changes when I visit another page, without refreshing it completely, that's what I'm looking for.
But maybe the second option is better...
But maybe the second option is better...