guestbook avatars - confused ?
www.jpgimage.co.uk/full.php?image=30
Selecting one of the four radio buttons will decide what avatar is used
- and even though it was myself who designed it - i find it little
confusing .
The confusion being you can pick one of the 40 gallery avatars - but it
doesnt get used unless you click on the appropriate radio button and
click on submit .
One (logic?) thing i did learn from doing it this way was a method that
meant the usual type of ..... if () {} ..... lines of php code to decide
what avatar gets displayed to the public isnt needed .
The default and the gallery avatar folders remain untouched regardless
of what avatar is selected/picked .
I used a folder called 'avatars_main' and anytime the the SUBMIT AND
CHANGE AVATAR form button is clicked - it copys the selected avatar into
the 'avatars_main' folder .
Thus - no need for any if(){} stuff as the 30 avatar images are just
pulled straight from the folder - in the normal way .
Or are you still confused.com ? :-)
date: Thu, 14 Aug 2008 18:18:23 +0100
author: Krustov
|