forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: Mrj on December 09, 2010, 03:30:12 pm

Title: Visitors can upload files - YES
Post by: Mrj on December 09, 2010, 03:30:12 pm
Hi,
Sorry for my english but I'm from Poland ;)

I have a small problem. When user make album, the option "Visitors can upload files" is automatically disabled. So if administrator doesn't change it, other users can't upload files to this album. I would like to have automatically enabled this option but I don't know what to do. I think I must make some changes in the files *.php.

I hope you can help me.
Title: Re: Visitors can upload files - YES
Post by: Αndré on December 09, 2010, 03:38:25 pm
Open delete.php, find
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id')";and replace with
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'YES', '{$position}', '', '$user_id')";
Title: Re: Visitors can upload files - YES
Post by: breatheheavy on February 08, 2012, 07:41:36 pm
I tried changing the permissions to YES but under:

Quote
Visitors can upload files Yes / No
No is selected for everyone. How can I fix this?

My gallery is: http://www.breatheheavy.com/xray/
Title: Re: Visitors can upload files - YES
Post by: Αndré on February 24, 2012, 01:47:54 pm
breatheheavy, please don't hijack other's threads nor post unrelated questions. Please upgrade your gallery to the latest cpg1.5.x release (currently cpg1.5.18) before you start a new thread with a meaningful subject in the correct board. Thanks.