hide the password protect album function hide the password protect album function
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

hide the password protect album function

Started by Cynos, November 28, 2015, 06:16:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cynos

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.

Αndré

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

Cynos

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:
    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:
    //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),