random image for user... random image for user...
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

random image for user...

Started by tanfwc, July 24, 2004, 08:29:34 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

tanfwc

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...?
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

SANIsoft PHP applications for E Biz

tanfwc

Quote from: 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

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
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

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....
SANIsoft PHP applications for E Biz

tanfwc

Quote from: 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....


Ok. Thank you for the information. But now, do anyone how to script to create random image for the specific user?
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Joachim Müller

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

tanfwc

Quote from: GauGau 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

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.
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Joachim Müller

go ahead and code it if you want, mods are always welcome.

GauGau

tanfwc

Quote from: GauGau on July 24, 2004, 01:50:32 PM
go ahead and code it if you want, mods are always welcome.

GauGau

i try...but my knowledge is limited limited limited :)
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

Quote from: tanfwc on July 24, 2004, 01:51:41 PM
i try...but my knowledge is limited limited limited :)

Argue for your limitations and they will be surely yours - Richard Bach
SANIsoft PHP applications for E Biz