how hide a protected gallery ?

When I protect a glarry, the users can't see it but instead they see a locker ... is there a way they don't see anything execpt if they have the password ?

Thanks

Comments

  • Sure, don't publish the album and it will not be shown.
  • hmm ..
    if I don't publish the album, nobody can't see it ...
    What I would like is :
    - user with password see the album
    - people without access don't see anything (by now they see a locker...)

    Thanks for any help
  • meh, thats getting a little too specific I think, just dont publish the album, and you can still access it if you save the link (bookmark for example), or type it in manually...
  • Ah, I am looking to set up something similar. A "clients" area of sorts. What might be the best way to create a separate series of albums that are only visible if you login with a guest/client user & password?

    Obviously having a row of blank images with locks on them isn't so appealing on the publicly displayed album page..

    Would I have to have two separate zenphoto installations to pull this off?

    Thanks!
  • acrylian Administrator, Developer
    You could either create a user for your client(s) or you just password protect a toplevelalbum.

    Of course your theme does not have to follow the standard setup. You can of course instead of using the main index album loop link directly into toplevel albums for example. Then one could be the public portfolio with several subalbums and one would be the password protected not published client area.
  • I want the same this as 'artiss' and 'spuddle'. I would like users to only see albums to which they have access in the overview. I understand the methods listed earlier in this thread as a way to avoid this, however those methods have the following draw backs:
    • You have to send the a specific album URL to a person you don't want to see the overview
    • or you must place particular albums within a top level album to get the visibility you want.
    I was wondering if there is now a different solution to this issue? Thanks in advance.
  • acrylian Administrator, Developer
    Unpublish the album and only those users with rights to it will see it. We have only rights for toplevel albums and its subalbums together for overhead reasons.
  • @acrylian Thanks. So is it true that only Admin rights has the ability to see unpublished albums?

    I'm working on a little hack to accomplish what I want. Thus far I've managed to block the display of particular albums editing the theme index.php using:

    ` isMyALbum(getAlbumData("name"), ALL_RIGHTS) `

    I'm having trouble figuring out what constant I need replace "ALL_RIGHTS" with for it to return true ONLY when the user is a has been selected as a manager of that album. I understand that this could be a poor choice from a performance point of view but I'm not concerned about my small gallery. Any help with this would be very much appreciated.
  • The second parameter is the access rights you wish to consider in allowing/denying access. But, this function works based on a) guest passwords and/or b) the managed albums list. The latter applies only to top level albums.

    If you have password protected/unpublished these albums, no one can see them unless you have given them that right. So this is the way to accomplish hiding albums from unauthorized viewers.

    This already works without the change to the theme index.php.
  • @sbillard A ha! I finally understand. Thanks for taking the extra time. I'll summarize this for other people who are confused.

    Having a album published means that it will show up for all users (unless the site is password protected). If they don't have access permission on the album it will show up with a lock picture, but the user will still know it's there.

    If you have a user with 'view all' permissions they won't see unpublished albums unless they have been specifically given access in the "Managed Albums" area. I found this pretty counter intuitive.

    So to give you a step by step:
    1. Unpublish all you albums.
    2. Create a view all user that has 'View all', and 'Overview', rights.
    3. In the Managed Albums area for that user click each one of the albums.
    4. Create a limited subset user that has 'Overview' rights.
    5. In the Managed Albums area for that user click only the Albums you wish them to see.
    I might create a feature request thread for the permission 'view unpublished'. Thanks again.
  • Perhaps this would have helped http://www.zenphoto.org/2008/07/an-overview-of-zenphoto-users/

    Note: published albums are viewed by ANYONE who has access to the site, not just people with user ids.
  • I edited my post to remove the error. I was considering the case where the site is already password protected.

    I did read 'Overview of Zenphoto users' before posting and it got me started. It would be great if that document mentioned this particular case of trying to not show the locked albums to logged in users. It's definitely not obvious from that doc how to do this.

    Thanks again for the great software.
Sign In or Register to comment.