Almost got this site done! I now have a small issue with password protected albums. I want to have all password protected client albums as subalbums of the 'Client Viewing' album. I have set the general albums to display a large random thumbnail for each subalbum, but for these protected ones I want to show a smaller thumbnail or none at all. Is it possible to do something different for these different cases?
If there's some function that checks whether an album is protected or not that I can use in album.php I can work from there, but I can't seem to find anything...
The page in question can be viewed here:
http://teresawatts.com/zenphoto/clientviewing
Comments
My PHP is a little rusty though, and I'm not sure how to do this. getParentAlbums() gives me an array of the parents which I'm assuming includes the 'Client Viewing' album, but I'm not sure how to go from the array to being able to check the name of the parent album to see if it's 'Client Viewing'.
How do I go from an array from parents to being able to get the parent album's name?
$parents = getParentAlbums();
echo "parents: " . $parents[0];
Just to test things out, but it seems to be returning an object rather than a string?
Also this one might help, too:
http://www.zenphoto.org/documentation/functions/_functions.php.html#functiongetUrAlbum