Forums

[Plugin: NextGEN Gallery] password protect an album? (22 posts)

  1. PKPrague
    Member
    Posted 3 years ago #

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

  2. PKPrague
    Member
    Posted 3 years ago #

    anyone? Please :}

  3. PKPrague
    Member
    Posted 3 years ago #

    hum, is my questions not clear? Still hoping someone will ring in...thank you.

  4. Giancarlo Colfer
    Member
    Posted 3 years ago #

    Yes it is possible to password protect albums. There are 3 available options.

    1. Simply create a new post, insert your gallery into the post using the nggallery shorthand code and set a password for that post.

    Easy and quick!

    2. Simply create a new page, insert your gallery into the page using the nggallery shorthand code and set a password for that page. Take it a step further and make a custom page template to further customize the look of your album. See ( http://codex.wordpress.org/Templates ) for more info on making page templates.

    3. Manually edit the NexGen Gallery Themes and integrate the wordpress user system right in! It's just as quick as the above options. Simply drop in a few lines of code to check if the user is logged in, if not then user will not see the album. See ( http://codex.wordpress.org/Function_Reference/is_user_logged_in ) for more info

  5. PKPrague
    Member
    Posted 3 years ago #

    Thanks for you reply, however, I have a gallery page here:

    http://kielhurn.com/?page_id=22

    and can easily add another album/gallery to it, the one I want to password protect, but I dont see where to add a password to it???

    Appreciate your reply.

  6. Alex Rabe
    Member
    Posted 3 years ago #

    No, currently you can't password protected a album. It require more rework for that

  7. Giancarlo Colfer
    Member
    Posted 3 years ago #

    @PKPrague

    Follow the instructions I provided above. This will work, and is the only work-around!

    http://i43.tinypic.com/2a94ish.png - View Example

  8. PKPrague
    Member
    Posted 3 years ago #

    hum, conflicting reports, both inputs appreciated. NexGen is so good yet has overlooked this simply functionality?

  9. PKPrague
    Member
    Posted 3 years ago #

    OK, Colfer is correct, however, here is my new problem. I created a gallery page, and only from the page can I password protect. If I add a new gallery album, it wants to password protect the whole gallery page, when I only want to protect one particular album, not all of them.

  10. PKPrague
    Member
    Posted 3 years ago #

    When trying to passwowrd protect just one album, the option is not there, it is only there if you want to protect the entire page???

    If you look here: http://kielhurn.com/?page_id=22

    I ONLY want to password protect the last one, called family....the other ones can remain public, but when I go to the page entitled Gallery, I see the option to protect the entire page....only!

  11. Giancarlo Colfer
    Member
    Posted 3 years ago #

    Make individual pages for individual albums. (ex. make 7 pages, password protect only 1)

  12. PKPrague
    Member
    Posted 3 years ago #

    urg, that means I must have a page for the one gallery and another page for the rest of them...not ideal. I do appreciate your answers, very much.
    Maybe Alex see the utility in this and will work on it? :}

  13. PKPrague
    Member
    Posted 3 years ago #

    in the end, I created a new page in hopes of password protecting one gallery, but all the gallerys show up there, repeating the public page as well.

    Needless to say, this takes up double the space, repeating each photo. I am surprised that NexGen hasn't this functionlity. I used to use G2, which did, and sadly, must resort back to it. I just cant post 1000 photos of my family for public viewing :{{{{ I think my siblings would sue me!

  14. PKPrague
    Member
    Posted 3 years ago #

    actually, this too did not work. If I created a page, passowrd protect it, it adds the gallery I want to protect to the public page as well:{

    Damn, so much into NexGen and it looks like I must switch to another plgin just so I can share private photos online :{

  15. iguanna2
    Member
    Posted 2 years ago #

    PKPrague , did you found another plugin to solve this?

  16. WebmistressM
    Member
    Posted 2 years ago #

    I too would be interested in having a feature that password-locks an album. Then when someone clicks on the album, it will ask for a password.

    I know that Gallery2 does this (and there is a WordPress Plugin for it) but I find that program to be overkill in how it sets up. My client wants some easier tools than that and NEXTGen is the closest I can find.

  17. rhysbwaller
    Member
    Posted 2 years ago #

    hopefully with the improvements in the WP 2.9 pipeline, some of these basic functions will be built into the core.

  18. rrstockertx
    Member
    Posted 2 years ago #

    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

  19. bitkahuna
    Member
    Posted 2 years ago #

    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.

  20. travellers
    Member
    Posted 2 years ago #

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

  21. goolasso
    Member
    Posted 2 years ago #

    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....

  22. Giancarlo Colfer
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.