Overriding AJAX?

Quick question for those who have played with ZenPhoto longer.

Has anyone gone about trying to override the default AJAX for editing the description/title/tags in a theme with a slightly different method? I love the AJAX editing, but the fact that it is 'click to edit' on the div itself is bad when I am trying to use links in my description. I can't really test them without running into the annoying bug. I'd love to edit my theme to use a tiny little 'edit' icon button instead.

Comments

  • I don't know off hand of a theme that provides this functionality, but it is a good idea. For the time being I suggest having a second instance of a browser logged out for testing purposes.
  • Which, if you do your testing from a Mac isn't always the easiest option, but yes, I already figured that part out. I am just a bit OCD about getting my software to work for me, rather than against me, and was hoping someone might have already taken a couple steps.

    If I have to do it myself, then the question becomes: is there a good way for a theme to determine if the user is logged in or not?
  • Yes, there is a function `zp_loggedin()` which will be non-zero if there is an admin logged in.
Sign In or Register to comment.