Easy Gravatars
This plugin allows you to automatically add Gravatars for commenters to your theme, if your theme does not already support them. According to the Gravatar.com website, Gravatars are Globally Recognized Avatars, or an “avatar image that follows you from weblog to weblog appearing beside your name whe
This plugin allows you to automatically add Gravatars for commenters to your theme, if your theme does not already support them.
According to the Gravatar.com website, Gravatars are Globally Recognized Avatars, or an “avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites.” You register with the Gravatar server, and upload an image which you will use as your avatar. The gravatar image is keyed to your email address, so that it is unique to you.
This plugin will display gravatars for the people who comment on your posts. You do not need to modify any of your template files — just activate the plugin, and it will add gravatars to your comments template automatically.
Credits
Based on a code snippet from Matt Mullenweg: http://photomatt.net/2007/10/20/gravatar-enabled/ http://pastebin.ca/743979
Props to David Potter for pointing out that Gravatar normalizes email addresses to lowercase before hashing with MD5: http://dpotter.net/Technical/index.php/2007/10/22/integrating-gravatar-support/
Copy the easygravatars folder and its contents to your wp-content/plugins directory, then activate the plugin.
The plugin will add a new Easy Gravatars section under the Options menu. There, you can configure the size and maximum rating of the gravatars that you wish to display. You can also set the location of a default image to display for users who have no gravatar (the default is a 1px transparent gif), you can tweak the CSS for the wrapper around the image, and you can select to attach the gravatar to either the comment author link, or the text of the comment.
By default, the gravatar is floated to the right of the comment author’s name, which should work well with most templates.
Frequently asked questions.
I have a Gravatar, but it doesn’t appear
The Gravatar service allows you to register multiple email addresses. Make sure that the email address you use in your WordPress comments matches an email address registered on the Gravatar server.
Also, check the rating of your gravatar versus the maximum allowed rating in the Easy Gravatar options. If your gravatar is rated ‘R’, but you set the maximum Easy Gravatar rating to ‘PG’, the image will be blocked.