Gravatars

Even before the recent announcement about Gravatar joining Automattic, I had been wanting to turn on comment avatars here. I nabbed Matt’s code, fooled with it a little, and now my comments are Gravatar enabled.

A couple of things that I discovered:

  • I was always getting the ‘default‘ image until I added a ‘rating‘ parameter.
  • The Gravatar server wasn’t serving up all sizes of my image until I re-uploaded it. It worked with size=40 and size=80, but not with size=60

When I did a quick search for an existing WordPress plugin, the Gravatar plugins I found all required you to modify your comments.php template file. I made mine less intrusive. I think I’ll go ahead and code up a plugin with some config options.

Stumble It!
Gravatars

Related posts:

  1. Easy Gravatars version 1.1
    " My Easy Gravatars plugin is now in the WordPress Plugin Directory, and I’ve released version 1.1. Changes: Gravatar images now link to comment author’s..."
  2. Easy Gravatars Plugin
    " Since so many people seemed to be interested, I went ahead and coded up my new Gravatars plugin: Easy Gravatars. It’s designed to be..."
  3. 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..."
  4. Easy Gravatars with Google Analytics Plugin
    " Several people have reported problems using my Easy Gravatars plugin together with Joost de Valk’s Google Analytics Plugin for WordPress. I spent some time..."
  5. WordPress 2.6 Beta 1
    "Last night Ryan Boren announced the release of WordPress 2.6 Beta 1. At first glance, you probably wouldn’t notice much difference between versions 2.5 and..."
This entry was posted in Blogging, WordPress and tagged , , , , , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

37 Comments

  1. Futura techmo.info
    Posted October 22, 2007 at 3:17 pm | Permalink

    I got Gravatar enabled too :)
    Not that I get that many comments, but its a nice thing to have.
    I used the plugin they offer on the gravatar website.

  2. mcangeli delusionsofgrandeur.org
    Posted October 22, 2007 at 3:36 pm | Permalink

    I’ve had gravatars enabled for a while. I’m using the http://zenpax.com/gravatars2/ Gravatars2 plugin. Works well. I just have to add a default one…

  3. GreyDuck greyduck.net
    Posted October 22, 2007 at 4:23 pm | Permalink

    I added Matt’s code and it seems to work without any modification on my end. That’s not to say I’d mind a nice configurable plugin, tho’. Hmm!

  4. Sarah sarahsmidnightfantasy.com
    Posted October 22, 2007 at 4:39 pm | Permalink

    Mine keeps getting resized (on my own blog), but I don’t know enough about code to fiddle with it. I wish all of them would be 100×100, just because I like that size, :)

  5. Joana nanashi-inc.net
    Posted October 22, 2007 at 4:40 pm | Permalink

    I’ve been sorely tempted to join the gravatar-enabled wave, but I really don’t like having to fiddle with my comments.php for fear I break something and all of the plugins I’ve seen require quite a bit of editing, and not just on one page. A plugin with config options would be most appreciated. :D

  6. sk skattertech.com
    Posted October 22, 2007 at 5:40 pm | Permalink

    I only wish it would work so that it would choose between a favicon from the URL the person provides or the gravatar. Anyone have any php code for hte server to automatically toggle between the two?

  7. Jaypee jaypeeonline.net
    Posted October 22, 2007 at 5:53 pm | Permalink

    I used to use the Gravatar plugin on my blog but switched to the MyAvatars plugin after I joined MyBlogLog because not all people have Gravatar accounts.

    Anyways, a plugin with config options would be nice. :)

  8. Ulysses Ronquillo ulyssesonline.com
    Posted October 22, 2007 at 5:55 pm | Permalink

    Dougal,

    Me, too. I added Matt’s code to my comments, but a plugin is nice for those not wanting to play around with the code. Go for it.

    Ulysses

  9. ajua ajuaonline.com
    Posted October 22, 2007 at 7:02 pm | Permalink

    i have my site gravatar-enabled but i got my theme to use image sizes of 25×25 and im getting only the default “G” image. i hope they correct this soon…

  10. S.K cyberbrahma.com
    Posted October 22, 2007 at 7:53 pm | Permalink

    I am unable to get Gravatar to work in my blog since my theme’s comments template doesn’t have a “list” element, but a div element to display the comments.

    Anyway, except in a few of my posts there is not much of comment activity over there either!

    S.K

  11. Douglas Karr douglaskarr.com
    Posted October 22, 2007 at 10:10 pm | Permalink

    S.K. – you don’t need to use a list element. I use a div element on my blog. I simply put the image just inside the div and align it to the right with enough padding or margin so nothing writes over it. Here’s how: http://www.douglaskarr.com/2007/10/17/wordpress-install-gravatar/

  12. Zeo zeo.unic.net.my
    Posted October 22, 2007 at 10:37 pm | Permalink

    I code this gravatar plugin not long ago. But it got few issue with recent comment. No need to modify your comment template but need to add a default image.

  13. Al lattimore.id.au
    Posted October 22, 2007 at 11:41 pm | Permalink

    Dougal,

    Scott Yang wrote a great plugin named Gravatar Cache, it might be worth checking out as well.

    Al.

  14. Ilias webatlantis.org
    Posted October 23, 2007 at 4:27 am | Permalink

    I ‘ve been using gravatars for a while on my blog.. Great Add !

  15. Daniel Fischer danielfischer.com
    Posted October 23, 2007 at 4:42 am | Permalink

    Yep, just enabled Gravatar’s on my site. Seems like everyone is doing it now…

  16. Jeffro2pt0 jeffro2pt0.com
    Posted October 23, 2007 at 6:08 am | Permalink

    I use a plugin that displays both Gravatar and MyBlogLog avatars. I explained which one I use and how to install it here http://www.jeffro2pt0.com/mybloglog-and-gravatar-support/

  17. Patti white-pebble.net
    Posted October 23, 2007 at 9:59 am | Permalink

    I’m looking forward to it. I tried modifying comments.php, with no luck. I will now patiently wait till you’re done coding. :)

  18. Kirk M just-thinkin.net
    Posted October 23, 2007 at 12:18 pm | Permalink

    I’m also looking forward to whatever you can put together. I’m finding myself getting too old(er) to wrap my head around code any longer. Always gave me a headache anyway. :P

  19. FrankPereiro planeta-beisbol.com
    Posted October 23, 2007 at 12:53 pm | Permalink

    Thanks for this. I will be using this feature in my blog.

  20. Silveira eupodiatamatando.com
    Posted October 23, 2007 at 1:12 pm | Permalink

    I’m already using gravatar in my blog.

  21. Sabo malditoweekend.com
    Posted October 23, 2007 at 2:49 pm | Permalink

    Someone went ahead and created a Plugin already using new Matt’s code:

    http://dpotter.net/Technical/index.php/2007/10/22/integrating-gravatar-support/

    Regards!

  22. Melissa melissa.misstuned.com
    Posted October 23, 2007 at 6:21 pm | Permalink

    I used to use Gravatar all the time..until it exploded all over the internet. I think I’ll switch back to using it again!

  23. S.K cyberbrahma.com
    Posted October 23, 2007 at 6:38 pm | Permalink

    Thank you Mr. Douglas Karr.

    I’ll also await Dougal’s promised plugin!

    But why my avatar is not showing up here? (I am a member in Gravatar)

    S.K

  24. Robert MacEwan macewan.org
    Posted October 23, 2007 at 9:46 pm | Permalink

    I just cropped my head in half darnit. ;-)

  25. Stephen Chu ju-ju.com
    Posted October 24, 2007 at 10:04 am | Permalink

    Another vote for Gravatars2. The option to have local avatars is great.

  26. Posted October 26, 2007 at 12:34 am | Permalink

    gravatar testing

  27. Ron celebrity.northglow.com
    Posted October 30, 2007 at 11:22 am | Permalink

    Funny thing I can’t show up any gravatars on my site… Instead the plugin I used only shows up avatars from myblogblog…

  28. Bryan Price bytehead.org
    Posted November 6, 2007 at 12:34 pm | Permalink

    That explains why some of the sites I’ve been at recently aren’t showing my gravatar. And here I thought I was using the wrong email address. I’ve added all of my emails. I guess I’ll see mine now. :)

    Hmmmm. No avatar for me!

  29. Bryan Price bytehead.org
    Posted November 9, 2007 at 7:10 pm | Permalink

    Haha. I still have no gravatar. There’s a link where it should be, but no picture. Weird.

  30. Bryan Price bytehead.org
    Posted November 17, 2007 at 5:20 pm | Permalink

    The Gravatar server wasn’t serving up all sizes of my image until I re-uploaded it. It worked with size=40 and size=80, but not with size=60

    S.K., that’s probably the reason why we can’t see our gravatars. We need to reupload them because Dougal is using the 60×60 size.

    Of course, I just changed it, and I’m still not showing up. That might be a gravatar caching kind of thing too. Weird.

  31. Bryan Price bytehead.org
    Posted November 18, 2007 at 4:25 pm | Permalink

    My gravatar is working. Yeah! So yes, I had to reload it, and then it may have had to go through a human looking at it to make sure it was rated G. Or maybe it truly is a caching issue.

    A nice feature would be allowing a separate avatar for rating of each email.

  32. Bryan Price bytehead.org
    Posted November 19, 2007 at 11:40 am | Permalink

    In pointing to somebody else to this discussion, the page is taking about a minute to load. I have a feeling that is due to the gravatars. :( You might want to time things on your end Dougal, because while they may look pretty, the wait for the results may be too much.

  33. Dougal dougal.gunters.org
    Posted November 19, 2007 at 12:06 pm | Permalink

    I don’t think it’s the Gravatars. It’s my wimpy web server. I’m shopping around for a new host. I’ve had free web hosting on this server for quite a while now, but often you get what you pay for ;)

  34. John Yellow adsseeker.com
    Posted December 2, 2007 at 5:06 pm | Permalink

    I’ve implemented gravatars on my own blog recently and everything seems to work smoothly. Really great plugin!

  35. Posted March 6, 2008 at 5:41 pm | Permalink

    Joined gravatars.com and will download the plugin to try it out on my blog.

  36. OnoSenday onosenday.net
    Posted August 7, 2008 at 5:40 pm | Permalink

    Gravatar testing

  37. Sujan P asiarooms.com
    Posted January 12, 2009 at 7:04 am | Permalink

    Gravatars are global recognizable avatars, a hosted avatar service for profile pictures, usually used to pimp comment sections on blogs, but also on forums, author pages, and whatnot.

2 Trackbacks

  1. [...] por parte de WordPress, numerosos desarrolladores ya lo han empezado a usar en sus blogs (Matt y Dougal por ejemplo). Así se esta empezando una campaña de promoción del uso de Gravatar en los bloggers [...]

  2. By Stack Overflows Under Control » Jeffro2pt0.com on November 11, 2007 at 8:09 pm

    [...] correct. The next two didn’t work out exactly as I wanted either. I also tried Doug’s EasyGravatars plugin. EasyGravatars worked well, except that it was hard to place it where I wanted in [...]

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Subscribe

  • Follow Me

    Twitter  Facebook  Flickr  Last.fm  LinkedIn  StumbleUpon  Technorati  Delicious  
  • Referrals

    Sign up for Text Link Ads and earn money from your blog.
  • Lifestream