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: Change default settings of album  (Read 3441 times)

0 Members and 1 Guest are viewing this topic.

-Manuel-

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Change default settings of album
« on: April 13, 2005, 03:24:02 pm »

Hello together
after creating a new album in a category, the permissions for the album are set like
 - Visitors can upload files          No
 - Visitors can post comments    Yes
 - Visitors can rate files             Yes

How can I change default settings to no, no, no so I don't have to change every album according my desires after creating it?

Thank you very much for your help
-Manuel-
Logged

Nibbler

  • Guest
Re: Change default settings of album
« Reply #1 on: April 13, 2005, 04:03:30 pm »

delete.php, change

Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')";
to

Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, comments, votes) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}', 'NO', 'NO')";
Logged

-Manuel-

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Change default settings of album
« Reply #2 on: April 13, 2005, 04:41:07 pm »

Hello Nibbler
cool! Thank you very much for your help! Would it be possible to explain the modification?

-Manuel-
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.