coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: aftab1003 on December 31, 2007, 09:46:13 AM

Title: upload to different directories
Post by: aftab1003 on December 31, 2007, 09:46:13 AM
i am using CPG for first time, and want to upload pictures by registered / unregisterd users to different directories at the upload page.

for example...
i have 2 catagories and 10(5+5) Albums.
if 1 user want to upload his/her picture to 3rd gallery of 1st catagory, or 5th gallery of 2nd catagory,,,

their should be a selection of upload directory/gallery to choose from where the user upload the pic.
mean to say, the each gallery should have its own upload panel to upload directly in to it.


any idea regarding my wishes will be highly appreciated.

thanks
my gallery is here
www.picturerating.us/picture-gallery (http://www.picturerating.us/picture-gallery)
:o
Title: Re: upload to different directories
Post by: Joachim Müller on December 31, 2007, 09:58:21 AM
The pysical place (folder structure) where the pics are uploaded to doesn't matter. By design, http uploads go into albums/userpics/XXXXX/, where XXXXX corresponds to the user's ID plus 10000. Coppermine's database keeps track of the images uploaded. You (or any uploader) can assign an album during the upload process where the image goes to in terms of logic and navigation.
To allow any uploader (not only the admin) to select a particular album where his upload should go to in terms of logic, you'll have to allow that. Do so using the album properties screen - set "visitors can upload"=yes.
Title: Re: upload to different directories
Post by: aftab1003 on January 08, 2008, 04:38:43 PM
thanks for your quick reply, but it cant help me.

i want to allow any unregisterd users to upload thier pictures in 4 galleries , and from that galleries thay can select for uploading the gallery at the upload page. u can say it restriction. ant guideline will be help me coz i am not so much fimilier with php...

thanks

aftab
Title: Re: upload to different directories
Post by: Joachim Müller on January 08, 2008, 07:22:34 PM
Then go ahead and assign the corresponding permissions to members of the "guest" group (this equals not-logged in visitors). No PHP skills needed to read the docs!
Title: Re: upload to different directories
Post by: aftab1003 on January 10, 2008, 02:34:39 PM
thanks for your help.

when i go to GROUP panal to assign the rights as u suggest, i found the the 4 groups there, admin,registered,guests, and banned.
and when i try to assign the galleries, the screen apears, This group has no special access .
any mistake by me, or i am doing wrong?

thanks again...


if u need the admin access, i can give u if u like
thanks in advance
Title: Re: upload to different directories
Post by: aftab1003 on January 10, 2008, 03:05:49 PM
ok, thank.
its now done with your help, i got the results that i want.
u can make it closed...



;)

now i will discuss with u about banners in another pages,thanks again
its on www.picturerating.us/picture-gallery
Title: Re: upload to different directories
Post by: Joachim Müller on January 10, 2008, 04:42:43 PM
For the benfit of others, you should have posted what you actually did to solve your issue. As it is quite obvious, here's an explanation for others: the button on the groups page isn't labelled "assign permissions", but "assigned permissions". You can only view them on the groups page.
To actually assign upload permissions per album, go to the album properties screen as suggested in the docs.