Hi to all,
if you want to define a default image size for all unregistered user (visiteur) you can add the following in "photo.php" in line 247:
else { if ( $imagesize[0] > $imagesize[1] ) { $width = 500; $height = floor( ( $width * $imagesize[1] ) / $imagesize[0] ); } else { $height = 500; $width = floor( ( $height * $imagesize[0] ) / $imagesize[1] ); } }
Hope it may be usefull :-)
Of course you can change "500" to everything you want.
Au revoir
Illuminator
I tried this code but got an error.
It doesn't seems like the right place to be placing it.
my line 247 shows placing it under the Previous image thumbnail display
shouldn't this be going under the Main image display?
I really would like to set a default image size for unregistered users
Thanks
Helaman
the best thing to do then is to set those values directly in the database for user "visiteur".
Offline
Hey dude,
you are good!
worked like a charm
I must say, this is a hell of a script. I can see lots of hours went into this puupy.
btw, this is the best gallery program I have tried but it was the first one to work
right out of the box, so....
Thanks
Helaman
Offline
In my opinion PhpWebGallery is among the 4 best image gallery systems (in the same category, ie free and written in PHP) : gallery, 4images and coppermine are the 3 others (I think they are superior compared to the release 1.2, but release 1.3 will be very interesting).
Offline