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.

16 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

  4. Taz says:

    Nice! Just what I was looking for – something simple, light, easy to implement and without a bunch of hype. I’m going to use this on my sister’s site first because she’s been hounding me to get her something like this. Then I’ll probably add it to my own. Very glad to have stumbled upon this today! 🙂

  5. Ian Clarke says:

    Hi

    Ive seen this plugin before .Has anyone had any success with it ?

  6. Max says:

    Hi!

    The gravatars in the comments section of my wordpress page are too big and over lap the text. There are no settings to tweak on the plugin so I’m not sure what to do.

    Any help would be appreciated.

    Thank you!

  7. Anonymous says:

    the gravitar links appear broken in comments. not sure when it occurred. i think prior to wordpress v3.4 here’s a link to latest comment = http://designapplause.com/2009/dyson-air-multiplier/6339/

    • Dougal says:

      It looks like your fallback image is pointing to ‘http://use.perl.org/images/pix.gif’, which is returning a 404 Not Found error.

  8. Maz says:

    I’m having the same problem with the fallback image but not sure what to change it to to get it to work again.

    • Dougal says:

      Well, the old ‘use.perl.org’ default image has gone away. So at the very least, I need to release an update to the plugin that gets rid of that reference.

      @Maz: Looks like default avatars are working correctly on your shreddernet.com site. Are you having problems somewhere else? Or did you change it before I had a chance to look?

      • Maz says:

        Yeah I just changed the URL to reference another random image on the web. It’s not really a big deal either way. I suppose I should have something customized to the content of the site, anyway.

  9. delta willis says:

    Hi, with the updates being made to the wordpress platform will there be regular updates to this plug-in or should i continue to use the presant version until i recieve nofication that an upgrade is good to go with?.

  10. Dougal says:

    I am currently working on an update (pretty much rewriting the plugin from scratch). With the new version, you will not only be able to add avatars for themes that don’t already support them (which should be few and far between by now), but you will also be able to override some of the default behavior even in themes that already support them. I’m hoping to release the new version in about a week, if I can find enough time to put into it.

Leave a Reply

%d bloggers like this: