News:

Wondering if this will always be free?  See why free is better.

Main Menu

alternating pics

Started by RGSMDNR, October 09, 2004, 04:57:50 PM

Previous topic - Next topic

RGSMDNR

is there a way i can have the smflogo.gif alternate between like 3-4 different pics?


Owdy

Yes, look my avatar. Refresh this page.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

RGSMDNR

oh sweet...

how do you do that?

Owdy

Use attached. Put in your site like http://site.com/image/random_image.php
Change this /home/path/to/your/site/ in php file to correct one. Then, put in that same folder some gif and jpg images. Thats it.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

RGSMDNR

i am trying to input it in the index.template.php file and getting an error..

is there anything else i need to do?

A.M.A

are you trying to input the code inside (random_image.php) to your index.template.php, or just including the file!
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

RGSMDNR

im not exactly sure what to do... im pretty new at this php stuff..


:(

Owdy

find:
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />


replace:
<img src="http://mysite/image/random_image.php" style="float: right;" alt="my cool logos!" />
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Oldiesmann

Interesting Owdy...

Refreshed the page and suddenly I'm staring at a polar bear's rear! :D
Michael Eshom
Christian Metal Fans

RGSMDNR

works like a hot damn...

thanks!!

Owdy

Quote from: Oldiesmann on October 09, 2004, 09:45:49 PM
Interesting Owdy...

Refreshed the page and suddenly I'm staring at a polar bear's rear! :D
LOL  :D
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: