ZenphotoCMS Forum
ZenPhoto and Google +1 - 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: ZenPhoto and Google +1 (/thread-8897.html)



ZenPhoto and Google +1 - lkjs - 2011-07-22

What is the best way to incorporate this into zenphoto? I would like to change the location of the button around, but the WSIWYG editor won't allow this:

Is there anyway to call this javascript function within the editor?

See: http://www.google.com/webmasters/+1/button/




ZenPhoto and Google +1 - sbillard - 2011-07-22

The editor will allow you to edit HTML. But you will also have to add g:plusone to the TinyMCE allowed elements. See their site for how to do this. (Of course this will require a custom configuration, see the zenphoto tiny_mce plugin options.




ZenPhoto and Google +1 - lkjs - 2011-07-22

Perfect.

Thanks for your help, this will solve another text rendering issue I was having too. :-)




ZenPhoto and Google +1 - lkjs - 2011-07-22

http://tinymce.moxiecode.com/forum/viewtopic.php?id=26316

Just for those n00bs in the future like me who need finding the answer and never thought about what tinymce did. :-)




ZenPhoto and Google +1 - acrylian - 2011-07-23

Much easier would probably be to just add that to the theme pages itself since I assume you want this on all pages anyway




ZenPhoto and Google +1 - lkjs - 2011-07-23

I don't want it on all pages and I want to vary the location as well. I did get it to work this way however.

I am having trouble with the TinyMCE getting it to work now. I got it working once and then don't know where I went wrong, it wont accept any of my custom elements now. I am asking on their forum.

Adding custom elements or anything else seems to break tinymce in zenphoto. I must be messing something up.