Advanced search  

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

Pages: [1]   Go Down

Author Topic: Visitors can upload files - YES  (Read 14885 times)

0 Members and 1 Guest are viewing this topic.

Mrj

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Visitors can upload files - YES
« 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Visitors can upload files - YES
« Reply #1 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')";
Logged

breatheheavy

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Visitors can upload files - YES
« Reply #2 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/
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Visitors can upload files - YES
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.