Hi,
I've coded a (very) little plugin to add gravatars in comments. It's really really simple (a few lines of code) but it make theme code a bit more simple / readable, so I figure I might post it here.
Here is the page with explanation / download / example image : http://blog.pcitron.fr/zenphoto-gravatar/
Here is the direct download : http://blog.pcitron.fr/wp-content/uploads/2009/08/gravatar.0.1.zip
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.
Oh, ok. I was using a customised version of stopdesign since ... I don't remember when, so I didn't notice that.
Will this kind of loops get deprecated, or will it still be supported for a while ? Anyway, I will check this comment_form plugin and the associated function.
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 ?)
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.
The loop is still there and of course you can still use it directly on the theme files as you do, too. The actual comment form is a separate file in plugins/comment_form/comment_form.php that of course can be customized.
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);"