ZenphotoCMS Forum
Overriding AJAX? - 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: Overriding AJAX? (/thread-3970.html)



Overriding AJAX? - Kolenka - 2008-10-28

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.




Overriding AJAX? - krainbolt - 2008-11-03

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.




Overriding AJAX? - Kolenka - 2008-11-03

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?




Overriding AJAX? - sbillard - 2008-11-03

Yes, there is a function zp_loggedin() which will be non-zero if there is an admin logged in.