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: hide the password protect album function  (Read 10713 times)

0 Members and 1 Guest are viewing this topic.

Cynos

  • Coppermine novice
  • *
  • Country: fr
  • Offline Offline
  • Posts: 45
hide the password protect album function
« on: November 28, 2015, 06:16:14 pm »

Hello,
thanks for all the work that is done !

I want to allow the users to create their own albums in the users gallery category.
I want to allow them to choice what kind of group can acces their albums

But I don't want users to protect their albums with a password.

So, I made a search, and found an old topic about this problem here:
http://forum.coppermine-gallery.net/index.php/topic,31648.0.html

I did the code changement, and that's great the field where you need to write the password went out.
But there's still the field that say "Protéger cet album par mot de passe (cochez pour oui) "

translate: do you want to protect this album with password.

The field is here, but has no effect.

Is there a way to hide this option please.

Thanks in advance.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: hide the password protect album function
« Reply #1 on: November 30, 2015, 10:14:24 am »

You also need to comment out that line:
Code: [Select]
array($icon_array['password'].$lang_modifyalb_php['password_protect'].$help['album_password'], 'password_protect', 9),
Logged

Cynos

  • Coppermine novice
  • *
  • Country: fr
  • Offline Offline
  • Posts: 45
Re: hide the password protect album function
« Reply #2 on: November 30, 2015, 01:10:50 pm »

I'm sorry for the spudid question, answer was so simple ...  ::) ... thank you a lot, that's works perfectly.

So, for the ones that want to remove the "protect password function", here it is what to do.

Open modifyalb.php

find:
Code: [Select]
    array($icon_array['password'].$lang_modifyalb_php['password_protect'].$help['album_password'], 'password_protect', 9),
    array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),

comment:
Code: [Select]
    //array($icon_array['password'].$lang_modifyalb_php['password_protect'].$help['album_password'], 'password_protect', 9),
    //array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    //array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.