ZenphotoCMS Forum
identifying logged in users - 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: identifying logged in users (/thread-1149.html)



identifying logged in users - BigAl - 2007-02-11

I want to implement sIFR image replacement in a theme. My guess is that it won't play nicely with the Ajaxy editable descriptions and titles, which is fine because I don't need to see the fancy replacement images.

So what I want to do is check whether the user is logged in or not. If they aren't then I include the .js file in the head and they get nicely styled images, if they are, then they get editable titles and descriptions.

So, is there a pre-written function that I can use, or does somebody know of a workaround?

(Basically it would operate the opposite of the printAdminLink function).

Thanks




identifying logged in users - miriam - 2007-02-13

Something like this?

`

if (zp_loggedin()) {

...

} else {

...

}

`

Groeten, Miriam