identifying logged in users

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

Comments

  • Something like this?

    `

    if (zp_loggedin()) {

    ...

    } else {

    ...

    }

    `

    Groeten, Miriam
Sign In or Register to comment.