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: Directory Creating per User Upload Album in /userpics  (Read 3409 times)

0 Members and 1 Guest are viewing this topic.

epsilon

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
    • http://www.cremita.com
Directory Creating per User Upload Album in /userpics
« on: March 04, 2004, 07:11:44 pm »

I would like that when a user creates and upload a new album for example (album lea), a new directorie will be created in /userpics like /userpics/lea

How i can do it, it will be great have this option in the script, thanks.
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Directory Creating per User Upload Album in /userpics
« Reply #1 on: March 05, 2004, 06:31:08 pm »

:)

Been asking/recommending similar solution but it was turned down that it can't be done? :( userpics folder just keeps getting bigger and bigger. ;)
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Directory Creating per User Upload Album in /userpics
« Reply #2 on: March 05, 2004, 06:43:54 pm »

cpg does normally put such pics in a folder it creates just for that user anyway, i.e., for user ID 25, it creates folder 10025.
But as there is no need for admin to go into userpics, cause cpg and the database take care of this, why does it matter?  
What you want is for coppermine to name the folder with the username, instead of the user ID.  I don't know how difficult this would be to code.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

  • Guest
Directory Creating per User Upload Album in /userpics
« Reply #3 on: March 05, 2004, 07:38:45 pm »

My gallery doesnt create any new folders atall, just dumps all the images in userpics, not sure quite why it isnt doing as you describe Casper. Anyway, having such a large number of files in one folder can cause problems - it has crashed my ftp client on several occasions.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Directory Creating per User Upload Album in /userpics
« Reply #4 on: March 05, 2004, 11:16:12 pm »

:oops:
seems I missed the change, sorry.  Coppermine used to act the way I described, but it seems to have stopped when 1.2.1 came out.

Can any of the dev's tell me why this changed.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

  • Guest
Directory Creating per User Upload Album in /userpics
« Reply #5 on: March 10, 2004, 08:34:31 pm »

Just stumbled upon the explanation for this - it only creates those extra directories if SILLY_SAFE_MODE is not set.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Directory Creating per User Upload Album in /userpics
« Reply #6 on: March 10, 2004, 09:50:16 pm »

That explains why it doesn't do it for me any more.  I did not turn it on for some time after starting my gallery, until I had problems.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.