Thanks! I'm almost there.
`
<?php
if (isProtectedAlbum()) {
echo "Protected album";
}
else if (zp_loggedin()) { ?>
<?php echo getAnnotatedAlbumTitle();?>"><?php printAlbumTitle(); ?>
<?php } ?>
`
At the moment if the user is not logged in it prints 'protected album' but I don't have titles for the other albums.
If the user is logged in I can see the titles but the protected album still says 'protected'
@Jimania No search engine objective. I need too share some photos with selected people only. These people know already which photos they will find inside the album, the others don't need to know the nature of the content, hence the name mask.
EDIT: I added `<?php if (isProtectedAlbum() AND !zp_loggedin()) {` so problem #2 is solved, but I'm still having problems with #1.
I added the album name `if (isProtectedAlbum(nameofmyalbum))` but it's Fatal error: Call to a member function getPassword() on a non-object in ...\photos\zp-core\template-functions.php on line 4254