forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: Cynos on November 28, 2015, 06:16:14 pm

Title: hide the password protect album function
Post by: Cynos 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.
Title: Re: hide the password protect album function
Post by: Αndré 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),
Title: Re: hide the password protect album function
Post by: Cynos 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),