forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: TheGamer1701 on July 24, 2005, 11:40:05 am

Title: Upload folders (not all pics in /albums/userpics/
Post by: TheGamer1701 on July 24, 2005, 11:40:05 am
Hello,

I'm using coppermine for a few months now and everything is fine except one thing:

All uploaded pictures go to the folder "/cpg_root/albums/userpics/" and that's it.
but I want to have a single folder for each album, e.g. like this:
"/cpg_root/albums/userpics/23.07.05_Party/"

How can I change that?
And do I have to reinstall cpg? Editing the database to change the folder entry for the pictures wouldn't be a problem, but I can't find a way to activate the folder option.

Any help on this would be greatly apreciated.


Facts:
CPG: 1.3.2 (more info: http://www.partynation.tv/coppermine/versioncheck.php)
PostNuke: 0.726 Phönix (using pnCPG 2.8)
I also added a watermark hack and a link to my themev (fruity), but I don't think that one will make any problems.


Thx,
André
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: Joachim Müller on July 25, 2005, 10:50:43 am
You (as coppermine admin) should use FTP-upload plus batch-add instead of http uploads. Read the docs for details.
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: TheGamer1701 on July 25, 2005, 01:00:49 pm
Hey,


I have about 8 aktive Users who are uploading pictures on a regular basis via the XP-Tool.
I don't like the idea of giving them ftp access to the gallery...


There should be another way...
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: Joachim Müller on July 26, 2005, 07:38:10 am
like I said: you should use FTP-uploads, but nobody else. Of course you mustn't give FTP privileges to anybody else.
Coppermine just works that way: user uploads go into userpics. No workaround. After all, the application keeps track of the files, the user doesn't have to, so why be concerned where the files actually reside?
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: TheGamer1701 on July 26, 2005, 01:58:55 pm
Well, relativly simple:

I don't like filenames like this one here:
thumb_IMG00066%7E5.JPG

:-)
And it takes really a lot of time to load the folder with an ftp program.
Even with ssh access it takes some time to safe the folder contents to a textfile...


But I'll just give my trusted persons ftp access to the albums folder...
that will do it, I hope.
thx
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: kegobeer on July 26, 2005, 04:24:37 pm
If a user uploads via FTP, the only way to get them in to the gallery is via batch add, which is an admin function.  Do you trust your users enough to be gallery admins?
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: Joachim Müller on July 27, 2005, 09:17:57 am
do not grant anybody FTP access nor admin access to coppermine just for the sake of batch-uploading. Severe security impact. Don't!
Title: Re: Upload folders (not all pics in /albums/userpics/
Post by: RatKing on July 28, 2005, 11:14:17 am
I think what is being asked for here is users have their own upload folder or when an album is created a folder is made for that album, users upload to the user dir and when the picture goes into an album the image is moved into it by CPG. That should make a nice looking clean upload dir.

It would do somethign along these lines.

User doesCPG does
Create catagoryCreate subdir in albums folder
Create album (not in cat.)Create subdir in albums folder
Create album (in cat.)Creates a subdir in cat. dir
User uploads fileFile goes into user upload dir
User adds uploaded file to albumFile gets moved to album dir

Make a backup of the album dir and you have all files. Extract a single dir from your backup and you have a complete album in one go. This is not a needed option but one that I my self have found a missing option in CPG. I know this will mean quite a bit of changing here and there but I am quite sure that the one that does this will be loved by a lot of CPG users ;)