• isnt it possible to password protect an album? This is such a fundamental function, surely NexGen has this? Appreciate any replies…

Viewing 6 replies - 16 through 21 (of 21 total)
  • hopefully with the improvements in the WP 2.9 pipeline, some of these basic functions will be built into the core.

    I have already gone through the exercise identified by ‘Giancarlo Colfer’ as well as the steps taken by ‘PKPrague’. BTW, I love NexGen and all the work that Alex has done – I just wanted that known but recently I have a client that has a Dermatological (skin) business and because of HEPA laws in the state you cannot post other peoples info, including images online, without reasonable security. (just a simple each – none SSL level password would do)

    I know the trick about making pages but at the end of the day, you can still see them in the gallery – unprotected. I really need something that allows Gallery’s and Album’s separately password protected.

    Basically, the title and name of the Gallery or Album, date, time and user that posted it. Then box asking for password.

    My client would have to make 50 new pages a week and/or other work around. This is not reasonable.

    ** Alex, any plans to update your wonderful plug? Even if you only add one password level, I would only add to the Album level and this would solve everyone’s issues.

    Thanks
    Roy

    PS. Any other suggestions or other plug-ins suggestions would be appreciated

    i wanted passwords on nextgen too and finally broke down and did it today. turned out it wasn’t hard. i just used similar code to what wordpress has for protecting posts/pages (thanks Giancarlo for the inspiration!) and put it in a gallery template. could be put in an album template instead, but all it does is if a password is required (and right now i’m using the gallery description field as the password, so if that field isn’t empty), instead of displaying the gallery it displays the password form just like post/page password protection does. if the password is given it goes in the cookie so is sticky, and the gallery displays. piece of cake.

    Show us what you did and where? </hopeful> ??

    Ye, I’m interested in this topic, too.

    Could you share your code and maybe some instructions?

    With joomla or some other galleries it’s possible, but I didn’t find nothing for wordpress.

    I’d like also to have permission at photo level: for example only some registered users can see some photos within galleries….

    Following up on this post, here is some basic and simple PHP Code that will work on any cms or page to detect a url address, hide it behind a password form, or show the content.

    <?php if (stripos($_SERVER['REQUEST_URI'],'/url-of-password-protected-page-goes-here') !== false) { ?>
    <!-- [false] Not password protected page. //-->
    <?php } else { ?>
    <!-- [true] Password protected page. //-->
    <?php $password = "admin";  /*Modify Password to suit for access, Max 10 Char*/ ?>
    
    <?php
      print "<h2 align=\"center\">PHP Simple Password Protect</h2>";
    // If password is valid let the user get access
    if (isset($_POST["password"]) && ($_POST["password"]=="$password")) {
    ?>
    <!-- PLACE YOUR CONTENT HERE //-->
      [nggallery id=3]
    <!-- END OF YOUR CONTENT //-->
    <?php
    }
    else
    {
    // Wrong password or no password entered display this message
    if (isset($_POST['password']) || $password == "") {
      print "<p align=\"center\"><font color=\"red\"><b>Incorrect Password</b><br />Please enter the correct password</font></p>";}
      print "<form method=\"post\"><p align=\"center\">Enter Password:<br />";
      print "<input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\"><input value=\"Login\" type=\"submit\"></p></form>";
    }
    ?>
    <?php } ?>

    The idea here is to have the php detect the assigned page, if its the page you want “password protected” then it asks for a password. So when you visit the page it will ask for a password, enter it right and you see the content enter it wrong and you see the password box again.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘[Plugin: NextGEN Gallery] password protect an album?’ is closed to new replies.