Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Easy Gravatars 1.2

Earlier today, I released Easy Gravatars version 1.2. The only change (besides confirming that works in WordPress 2.5, currently in beta, due out next week) is that when installed under WordPress 2.5 or newer, it will use the new core get_avatar() function to generate the image tag. And since get_avatar() is a pluggable function, other plugins could conceivably use it to generate avatar icons from other services, and Easy Gravatars would then use the new service too.

If that doesn’t make sense to you, don’t sweat it. You can upgrade and it will work fine (on both older versions of WP and the upcoming version 2.5). Or you can keep the previous version, and it will continue to work fine, too. The only way things would work any different is if you are running WordPress 2.5 (or later, one day), and if you had an additional plugin which defined a new get_avatar() function.

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.
This entry was posted in Plugins, WordPress and tagged , , , , , , , , , . Bookmark the permalink.

39 Responses to Easy Gravatars 1.2

  1. Jenny says:

    we need MBL tooooooo 🙁

  2. sedidero capire come fare per ottenere le scritture in italiano per rendere semplice la navigazione grazie
    pasquale timone

  3. Stephen R says:

    Since it came up recently on the Hackers list:

    How do you check for WP version? Or are you just checking for the existence of the get_avatar() function?

  4. Dougal says:

    Stephen: I’m checking for the existence of get_avatar(), not looking at the actual WP version.

  5. Tanya says:

    I am disappointed because the previous version worked fine, but after the upgrade the gravatars don’t appear any more. I reverted to the older version but they still do not appear. I didn’t change my email. I want my gravatars in the comments back…

  6. Pingback: WordPress Weekly Episode 9 | Jeffro2pt0

  7. Pingback: David’s Technical Musings » Blog Archive » Easy Gravatars version 1.2.1

  8. David Potter says:

    Cool. The only thing I don’t care for is that it appears that the get_avatars function returns the <img> tag rather than just the URL. The result is that I can no longer add the border around the image without much hackery.

    In any event, I’ve added my changes to this version like I have in previous versions. Dougal, it would be cool if you could pick up at least some of these. You can check out my changes here.


  9. Michael says:

    Same as Tanya, not working since the upgrade. The default image shows for all users, including me.

  10. David says:

    Phew, I am not the only one who is having this problem, thought it was something I had done. As above, only my default image shows for all my avatars.

  11. cloink says:

    The problem seems to be the “rating” QueryString parameter. If set to X, it won’t display avatars. For some odd reason. 😐

  12. cloink says:

    Err, scratch that and make it “if set” period (no matter what it’s set to).

  13. Dougal says:

    Okay, all you folks who were having problems, I’ve looked at your sites, and the avatars appear to be working okay. Did it clear itself up? Maybe a glitch in the Gravatar service itself?

    Cloink: I don’t know what’s up with those comment dates… Must be a bug in the beta code I’m running here.

  14. Michael says:

    Dougal, it’s working now, so it must have been a Gravatar problem. Thanks for the plugin.

  15. Pingback: Algumas alterações no blog | Eurico Leite

  16. File Host says:

    I have been using the Ravatars pluggin but have had any luck getting it to function, so will try this pluggin !

  17. Pingback: Alter Falter!

  18. bianca says:

    sorry, just need to test something

  19. Kirk M says:


    Quick question here:

    I’m not getting the assigned avatar to show up for my replies to comments when I’m logged in. When logged in, my assigned email is wordpress(at)”my-domain”.net and I have assigned an avatar to that email address at Gravatar yet it does not show up in my reply. Replies I make when logged shows the avatar to my logged out email address no problem( as it should here). Am I missing something here about “logged in” Gravatars?

  20. Bakkel says:

    Thx, plugin works fine!! One question though: Because of the link to the comment-author, It shows a border around the gravatar (check border=”0″ in your options page doesn’t work! Any tips???

  21. BOK says:

    Just upgraded to WP2.5 – I see double gravatars in my comments and I haven’t been drinking yet…
    For the time being I disable this plugin, like some others until fully compatible with todays release.

  22. Dougal says:

    BOK: The included Default (Kubrick) and Classic themes have been updated in WP 2.5 to display gravatars. You’ll only need Easy Gravatars if your theme does not already support them.

  23. Stephen R says:

    Heh. You know Doug… for the D Potters of the world maybe you should make your plugin pluggable. Add a do_action() just before it returns the HTML…. 😉

  24. Pingback: So your WordPress 2.5 theme doesn’t support Gravatars?—WP Project  

  25. Pingback: Nuevos plugins en cuentascuentos |

  26. Pingback: Wordpress Plugin: Gravatare

  27. Hisky says:

    Works great 🙂
    I like the easy css setup!

  28. super rats says:

    I’ve been using this for months and it’s been perfect, except now instead of showing my Gravatar (as the Admin of the site) it loads up the default Gravatar, as if I didn’t have one registered. I’ve cleared the cache and deactivated plug-ins, still no. I did update a few plugins, but deactivating them doesn’t seem to change anything. Is there a way I can force it to display my Gravatar?

    The only other odd thing I can think of that happened was I used the comment form while I was not logged in as an Admin, but filled in the fields with the same name and email address. Have no idea if that could have messed things up.

  29. super rats says:

    Well, it seems to have fixed itself.

    I even used a computer I’d never used before and it was still showing the default (no registered gravatar) image instead of my registered one when browsing my site yesterday. Not sure what the problem was since the registered gravatar was showing on other people’s sites, just not mine for a couple of days.

    Guess it was just a hiccup somewhere along the chain.

  30. dewaji says:

    Sir, I know you deleted my comment because using keyword. No I change it 😀

    My question still, what plugins do you use for us to edit comment after post a comment on your blog


  31. James T says:

    Today I noticed that my WordPress Gravatars appeared in my paged comments as well as my easy gravatars, now when I turn off my wordpress gravatar setting my easy gravatar also disappears, I like the easy gravatar as it is floated right and is a better size. any idea how I can disable the wordpress gravatar without losing my right aligned easy gravatar…. I swear wordpress does on the fly changes…

  32. jeff says:

    I am using cutline as my theme for wp 2.5 and no avatars? any ideas.

  33. Pingback: 8 Plugins WordPress indispensables pour les commentaires » article » BLOmiG

  34. slbt says:

    the plugin doesn’t working correctly with wp 2.7 beta 2 🙁
    it shows the gravatars in the sidebar widget ‘recent comments’

    any help?

  35. Baliinc says:

    Can we have two account with one image ?

  36. Pingback: All Things of World

  37. Pingback: WPWeekly Episode 9 – Automattic Acquires BuddyPress – WordPress Tavern

Leave a Reply to dewaji Cancel reply

%d bloggers like this: