Plugin: Gravatar
Author: Original by Dani Armengol, Modified by Mark Wu
Release Date: 2005/01/23
Version: 1.0

Returns the URL of an (gr)avatar for every comment. The image is loaded from Gravatar.com

In order to use, simply include the following:
1. $gravatar->isEnabled() to check the plugin is enabled or not. 
2. $gravatar->gravatar($comment,$rating,$default,$size) to get to Avatar from Gravatar.com

Where:
1. $rating is the allowed rating of avatar. Default is "G"
2. $default is the URL of the default image that will be shown in case there is no gravatar available or if the user did not give an email address. You also can choose your default avatar from configuration panel. Default is "default.jpg"
3. $size is the desired size in pixels of the gravatar. Default is 40.

Example:
Add the following code to postandcomments.template:
{if $gravatar->isEnabled()}
<img src="{$gravatar->gravatar($comment)}" width="{$gravatar->getSize()}" height="{$gravatar->getSize()}" align="left" />
{/if}

You can add your own default avatar image to /plugin/gravatar/avatars. This plugin only support GIF and JPG format currently.