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: Making registered users able to post in albums by default.  (Read 4190 times)

0 Members and 1 Guest are viewing this topic.

plastikaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Making registered users able to post in albums by default.
« on: February 16, 2005, 11:33:51 am »

At the moment every album I create I have to seperately set the permisions on each one so that visitors can post images. Where can I change this so that all albums are already set to allow visitors to uplaod pics?
« Last Edit: February 16, 2005, 04:56:41 pm by GauGau »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Making registered users able to post in albums by default.
« Reply #1 on: February 16, 2005, 01:29:37 pm »

To create albums that are set to allow visitor uploads:

In delete.php, look for
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')";and change to
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'YES',  '{$op['album_sort']}')";
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

plastikaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Making registered users able to post in albums by default.
« Reply #2 on: February 16, 2005, 04:24:18 pm »

Thanks I knew it was in that file somewhere... I just didnt know where to even start looking and thought someone would know which would save me quite a bit of time.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.