Directory Creating per User Upload Album in /userpics Directory Creating per User Upload Album in /userpics
 

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

Directory Creating per User Upload Album in /userpics

Started by epsilon, March 04, 2004, 07:11:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

epsilon

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.

DefenceTalk.com

:)

Been asking/recommending similar solution but it was turned down that it can't be done? :( userpics folder just keeps getting bigger and bigger. ;)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Casper

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.
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

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.

Casper

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

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

Casper

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.
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