Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Easy Gravatars

Description

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/

Changelog

1.3 2010-01-14

  • Tested compatibility up to WordPress 3.0-a

1.2 2008-03-06

  • When running under WordPress 2.5, use the built-in Gravatar image functions.

1.1 2007-11-16

  • Gravatar images now link to comment author’s URL, if provided.
  • Gravatar code now prepended to text instead of appended.
  • Code reorganized. Functions for filters and hooks are now near the actions
    that actually call them.
  • Added stylesheet for options page and improved layout. Split options into
    ‘General’ and ‘Advanced’.
  • New advanced option for selecting either ‘Comment Author Link’ or ‘Comment
    Text’ API hook.

1.0

  • Initial release.

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
Bookmark the permalink.

17 Responses to Easy Gravatars

  1. Pingback: Finally Tweaked My Comments on DragonBlogger.com on Dragon Blogger

  2. Pingback: ??? ??????? ?????????? ??????? Wordpress. | Wordpress, ???????, ???? ? ???????.

  3. Pingback: WordPress Plugins used on Quirksmode | quirksmode

Leave a Reply