Random image load within gbook.php ?

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
its_jon
Posts: 2
Joined: Sat Jul 22, 2006 3:45 am

Random image load within gbook.php ?

Post by its_jon »

Hi.

Excellent guest book !

Im a novice web designer and I want something extra from this guest book

I have added the lower line to this section of gbook.php ....watermark.gif located within the guestbook root folder

Code: Select all

if ($settings['use_url'] && $url)
{
	echo '<font class="smaller">Website:</font> <a href="go.php?url='.$url.'" target="_blank" class="smaller">'.$url.'</a><br>';
}
if ($email)
{
	echo '<font class="smaller">E-mail:</font> <a href="mailto:'.$email.'" target="_blank" class="smaller">'.$email.'</a>';
}

echo '<P ALIGN="center"><img src="watermark.gif"></P>
What I would like to do is set up some code to load a random image for each guestbook post insted of what I have now ..... which is watermark.gif apppearing under everyones name/email input.

please help.

thanks !
its_jon
Posts: 2
Joined: Sat Jul 22, 2006 3:45 am

Post by its_jon »

ho ho ho Ho !

done it.

Could not get a new pic for each post but I can change everyones pic for every page view. !

See here

http://www.floyd2.co.uk/guestbook.html

note, firefox need have private data cleared before a new pic will diplay.... In Ie simply 'view guesbook' to riotate the images. 8)
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Glad to hear, I like it when people solve problems on their own :wink:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply