Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Visitors can upload files - YES  (Read 14897 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.019 seconds with 19 queries.