Page 1 of 1

Random image load within gbook.php ?

Posted: Sat Jul 22, 2006 3:53 am
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 !

Posted: Sun Jul 23, 2006 4:08 pm
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)

Posted: Sun Jul 23, 2006 4:36 pm
by Klemen
Glad to hear, I like it when people solve problems on their own :wink: