Show Album Thumbnail even if album has password protection

I am sorry if this has been answered before, but I could not find an answer in the forums.

But, Is there a way to keep the thumbnail of an album visible to non logged in users, if the album is password protected?

I am currently using the following code to render the thumbnail and when not logged in, I see the protected image.

<?php printCustomAlbumThumbImage(getAlbumTitle(), $size=300, $width=NULL, $height=NULL, $cropw=300, $croph=300, $cropx=NULL, $cropy=NULL, $class="img-responsive albumthumb"); ?>

Thanks so much

Comments

  • acrylian Administrator, Developer
    No, since protected means protected.
  • ok that answers that :) I would have to manually create an image and use that as the 'thumbnail' and just link to the protected gallery then.. a little workaround.. not sure it is worth the time..

    Thanks for the quick response.
  • Of course the answer in not really "no". That applies only if you are not into "do it yourself". If you delve into the Zenphoto object model you can get and print any image you want--protected or not. It is just that the normal functions will honor a users making images protected by not showing them. Any other behavior would not really be correct.
  • acrylian Administrator, Developer
    Sure, with coding the question "Is it possible?" is always wrong. However, I understood elrol's question in the meaning "is there an easy way". There is not, since the object model for most is not :-)
Sign In or Register to comment.