Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: random image for user...  (Read 5957 times)

0 Members and 1 Guest are viewing this topic.

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
random image for user...
« 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...?
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: random image for user...
« Reply #1 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
Logged
SANIsoft PHP applications for E Biz

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: random image for user...
« Reply #2 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
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: random image for user...
« Reply #3 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....
Logged
SANIsoft PHP applications for E Biz

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: random image for user...
« Reply #4 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?
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: random image for user...
« Reply #5 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
Logged

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: random image for user...
« Reply #6 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.
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: random image for user...
« Reply #7 on: July 24, 2004, 01:50:32 pm »

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

GauGau
Logged

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: random image for user...
« Reply #8 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 :)
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: random image for user...
« Reply #9 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
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.