![]() |
|
Protected album title - 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: Protected album title (/thread-7275.html) |
Protected album title - Barbara - 2010-07-01 I'd normally make a search but it's not working at the moment. I wanted to know if it's possible to change the title of the album if the album is protected. As in, if the album has a password display 'Protected album' as its title and then after the user has logged in display the regular album name. Protected album title - sbillard - 2010-07-01 Certainly, Of course you will have to code the display. The functions you want are Protected album title - Barbara - 2010-07-02 Thanks! I'm almost there. ` "> ` @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 ` Protected album title - acrylian - 2010-07-02 An album is still an protected album if you are loggedin, so Note that the album name for a subalbum includes the parent albums as well ("toplevel/sublevel1/sublevel2"....). PS: I think the jimania post might be spam... Protected album title - Barbara - 2010-07-02 What the...? You're right, the account is just a few hours old. It looked like a genuine message. Protected album title - acrylian - 2010-07-02 Where exactly do you put that code? (no idea about the fatal error right now). Protected album title - Barbara - 2010-07-02 Here, I replaced everything inside h3. I'm using a fresh install of 1.3 and testing it with the default theme. Protected album title - sbillard - 2010-07-02 If you are passing an album, it must be an album object, not the name. If you omit the parameter it will check the currernt album. So, it would seem to me what you want is: if (!zp_loggedin() && isProtectedAlbunm()) {echo "protected album"; } else { output the normal stuff } Protected album title - Barbara - 2010-07-02 sbillard ++. Thank you! One day I swear I'll get the hang of php. :p Protected album title - Guest - 2010-07-04 Acrylian... You are a genius!! |