Availability
Gravatar Plugin v0.1 can be downloaded from the Blojsom2 Plugins download page
.
Overview
Gravatar Plugin attaches a Gravatar ID to each blog entry comment, which can then be used to display Gravatar (Globally Recognized Avatar) image available from gravatar.com
.
Screenshot

Changelog
v0.1 (18-01-2005): Initial release. Requires Blojsom 2.17 or later.
Build
Gravatar plugin uses Ant to build the source.
ant jar-pkg
Installation
Place gravatarplugin-version.jar in your WEB-INF/lib directory.
In your global /WEB-INF/plugin.properties file, add the following line:
gravatar=com.mbledug.blojsom.plugin.gravatar.GravatarPlugin
Add "gravatar" to one of the flavor-based plugin chains. These plugin chains can be found in the individual blog's plugin.properties file. You can place it anywhere within the chain, however it is recommend placing gravatar plugin at the end of the plugin chain. For example:
html.blojsom-plugin-chain=..., gravatar
Usage
In your template, add the Gravatar ID metadata to the img tag's src attribute url.
#set ($gravatarId = $entryComment.getMetaData().get("blojsom-plugin-gravatar"))
<img src="http://www.gravatar.com/avatar.php?gravatar_id=$gravatarId&size=40" />
For more information on gravatar.com's url configuration, have a look at Gravatar implementor's guide How the URL is constructed
.
Demo
A demo is available at Melbourne Photoblog
.