coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: fangweile on August 29, 2007, 10:25:11 AM

Title: Making album upload public
Post by: fangweile on August 29, 2007, 10:25:11 AM
Coppermine Version: Coppermine Photo Gallery 1.4.12
Integrate with SMF 1.1.3


I have set already to group manager the following settings:

Registered => Public albums upload 

allowed = yes
approval = no
Guest => Publics albums upload
allowed = no
approval = no

but still my members can't upload to my public album.

I check the album properties and found there the option of "Visitors can upload files *" under "Permissions for this album"

This option is set to default "no" which means visitors can't upload photos to that album.
I try to set it to "yes" and found out that the album is now can use by my members. My members now can upload photos to that album if it set to "yes"

But it said with asterisk that this option is depending on group settings.
My group settings for public upload are set above which is allowing my member to upload photos on public album.

If the option "visitor can upload files" is set to "no", my registered members can't upload files to that album. why is this so?  ???

Is there any way to fix this cause I don't want to edit all my album's properties one by one just to set the option to "yes". ? Do I really need to do it and set it to yes manually?? ::)

Hope someone could help. Waiting for your response, thanks in advance.
Title: Re: Making album upload public
Post by: Nibbler on August 29, 2007, 01:51:14 PM
Visitors means anyone who visits the gallery. It does not mean guests. You can set the album permissions en masse using phpmyadmin (uploads => 'YES')
Title: Re: Making album upload public
Post by: Web-Man on August 29, 2007, 03:46:00 PM
I can change in phpmyadmin for one single album at time, how can i do it for all albuns?
Title: Re: Making album upload public
Post by: Nibbler on August 29, 2007, 06:05:37 PM
UPDATE cpg_albums SET uploads = 'YES'

change the prefix as appropriate.
Title: Re: Making album upload public
Post by: Web-Man on August 29, 2007, 07:10:59 PM
When i create a new album i can make that command again? and again, and again?

tnks Nibbler
Title: Re: Making album upload public
Post by: Nibbler on August 29, 2007, 07:27:01 PM
You can change the default in delete.php

$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}', '')";

Just change the NO to YES.
Title: Re: Making album upload public
Post by: Web-Man on August 29, 2007, 07:56:40 PM
Nibbler perfect, thank you for the help