upload to different directories upload to different directories
 

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

upload to different directories

Started by aftab1003, December 31, 2007, 09:46:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aftab1003

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

Joachim Müller

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.

aftab1003

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

Joachim Müller

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!

aftab1003

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

aftab1003

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

Joachim Müller

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.