Support Forums / Tips & tricks / Archives / 08-02-2007 / Question about banner

Topie: Question about banner
October 27th, 2006 01:32 PM
hockeyfanforum Hi all!
I changed my board up a bit, and the banner is a game shot of some of the team's hockey players.
I plan on changing the image every week or so, but what I really want to do is have it like the banner on another team's board.

The Reading Royals board has a banner that changes images with each view:

http://www.readingroyalty.com/banner/rotate.php

Now I know that it uses PHP(which I don't have much knowledge of), but is there a way to make an image that changes WITHOUT PHP?
Possible a website or free program that I can use to make it do that?

Please and thank you. :D
October 27th, 2006 02:41 PM
hockeyfanforum Never mind!
I figured it out using basic PHP.
I didn't know how simple it could be until I used this tutorial:

http://codeforums.co.uk/php/random-image-generator.php

:D :D :D
October 27th, 2006 04:02 PM
hockeyfanforum Sorry for the triple post, but I'm stuck again.

I have the banner working(I uploaded the files to the Fan Club site):
http://www.texaswildcattersfanclub.com/alternatingbanner.php

But in order to get it to show up, I have to have it hosted to the board.
Which is not possible.

Any suggestions? :)
October 27th, 2006 08:21 PM
sdn Find this in the PHP file:
code:

echo "<img src=\"$image_folder/$image_name\" />;"



Replace it with this:
code:

header("Location: http://yoursite.com/path/to/image/folder/$image_folder/$image_name");



Then add this to your board where you want the image to show up:
code:

<img src="PHP file URL"border="0" />

October 27th, 2006 09:31 PM
hockeyfanforum Thank you SO much! :D
It still took me a few tries to get it right, but now I understand it.

Take a look:

http://www.texashockeyfans.com
October 27th, 2006 10:12 PM
sdn Nice design. :)
October 28th, 2006 03:41 PM
hockeyfanforum Thanks! :D
I added some more images to the banner's rotation.
There are a total of 16 different images.

And thanks again for the help! :)