Visitors can upload files - YES Visitors can upload files - YES
 

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

Visitors can upload files - YES

Started by Mrj, December 09, 2010, 03:30:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mrj

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.

Αndré

Open delete.php, find
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id')";
and replace with
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'YES', '{$position}', '', '$user_id')";

breatheheavy

I tried changing the permissions to YES but under:

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

My gallery is: http://www.breatheheavy.com/xray/

Αndré

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.