forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: tanfwc on July 24, 2004, 08:29:34 am

Title: random image for user...
Post by: tanfwc on July 24, 2004, 08:29:34 am
i have been thinking whether it is possible to have random image for user like putting their images at homepage without using PHP code for the linking... Like having www.yourdomain.com/me/random.jpg will display all the pic in his account...?
Title: Re: random image for user...
Post by: Tarique Sani on July 24, 2004, 08:39:47 am
well if not http://yourdomain.com/me/random.jpg - you very easily can have http://yourdomain.com/me/random.php in the img src
Title: Re: random image for user...
Post by: tanfwc on July 24, 2004, 08:43:54 am
well if not http://yourdomain.com/me/random.jpg - you very easily can have http://yourdomain.com/me/random.php in the img src

hmmmm...some users want to post image at forum and only image extension is allow. That why. Thank you for replying. So the PHP will return a random image to random.jpg
Title: Re: random image for user...
Post by: Tarique Sani on July 24, 2004, 09:06:50 am
In that case you will have to just rename random.php to random.jpg and use .htaccess to tell apache that random.jpg is a PHP file....
Title: Re: random image for user...
Post by: tanfwc on July 24, 2004, 09:13:58 am
In that case you will have to just rename random.php to random.jpg and use .htaccess to tell apache that random.jpg is a PHP file....


Ok. Thank you for the information. But now, do anyone how to script to create random image for the specific user?
Title: Re: random image for user...
Post by: Joachim Müller on July 24, 2004, 01:36:26 pm
take a look at my avatar - it is a random file with the extension .png (but could as well be .jpg). Recommended reading for a random image scripts:
http://photomatt.net/scripts/randomimage
http://www.1800getryan.com/Randomimage.html

GauGau
Title: Re: random image for user...
Post by: tanfwc on July 24, 2004, 01:48:43 pm
take a look at my avatar - it is a random file with the extension .png (but could as well be .jpg). Recommended reading for a random image scripts:
http://photomatt.net/scripts/randomimage
http://www.1800getryan.com/Randomimage.html

GauGau

Thank you very much for the link. But what i actually want is that CPG can have this feature inbuilt to the gallery so the users can make good use of it. The random will somehow random those images in their own album.
Title: Re: random image for user...
Post by: Joachim Müller on July 24, 2004, 01:50:32 pm
go ahead and code it if you want, mods are always welcome.

GauGau
Title: Re: random image for user...
Post by: tanfwc on July 24, 2004, 01:51:41 pm
go ahead and code it if you want, mods are always welcome.

GauGau

i try...but my knowledge is limited limited limited :)
Title: Re: random image for user...
Post by: Tarique Sani on July 24, 2004, 01:58:19 pm
i try...but my knowledge is limited limited limited :)

Argue for your limitations and they will be surely yours - Richard Bach