![]() |
|
Gravatar in comments - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Gravatar in comments (/thread-5735.html) |
Gravatar in comments - Citron - 2009-08-24 Hi, Here is the page with explanation / download / example image : http://blog.pcitron.fr/zenphoto-gravatar/ PS: at first, I wanted to make it a filter, but unfortunately, I didn't find a way to make it work for already posted comments ... so I just made this function which is simple to use in themes. Gravatar in comments - acrylian - 2009-08-24 Thanks, will add an entry on our plugins page later. I think you should mention that the functions needs to be added to the comment_form of the comment_form plugin. Gravatar in comments - Citron - 2009-08-24 Ah, no, it's not added to the comment_form plugin, it's directly used in the theme image.php file, in the "while (next_comment())" loop ! Gravatar in comments - acrylian - 2009-08-24 Well, with 1.2.6 none of the standard themes has that loop in that form anymore...:-) That code is now in the comment_form plugin and print by Gravatar in comments - Citron - 2009-08-25 Oh, ok. I was using a customised version of stopdesign since ... I don't remember when, so I didn't notice that. Wouldn't it be possible to make the printCommentForm() function hookable / overridable (I mean, provide a way for developpers to add their own filter to modify the printCommentForm() behavior ?) Gravatar in comments - acrylian - 2009-08-25 It is just that all comment handling code has been moved to the plugin to avoid having the same code in several places to maintain. Gravatar in comments - gsvalentine - 2010-02-01 I have been playing about with this plugin, but I can't get it to work. Where about's in the image.php do the put the following line of code?? "echo get_gravatar(getCommentAuthorEmail(), 40);" Gravatar in comments - acrylian - 2010-02-01 You have to look at |