![]() |
|
how hide a protected gallery ? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: how hide a protected gallery ? (/thread-4266.html) |
how hide a protected gallery ? - artiss - 2008-12-16 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 how hide a protected gallery ? - sbillard - 2008-12-16 Sure, don't publish the album and it will not be shown. how hide a protected gallery ? - artiss - 2008-12-17 hmm ..
Thanks for any help how hide a protected gallery ? - code - 2008-12-17 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... how hide a protected gallery ? - spuddle - 2008-12-20 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! how hide a protected gallery ? - acrylian - 2008-12-20 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. how hide a protected gallery ? - iangbl - 2009-12-31 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: [list] how hide a protected gallery ? - acrylian - 2009-12-31 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. how hide a protected gallery ? - iangbl - 2009-12-31 @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:
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. how hide a protected gallery ? - sbillard - 2009-12-31 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. how hide a protected gallery ? - iangbl - 2009-12-31 @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: [list=1] how hide a protected gallery ? - sbillard - 2009-12-31 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. how hide a protected gallery ? - iangbl - 2009-12-31 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. |