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=40andsize=80, but not withsize=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.
GravatarsRelated posts:
- 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..." - 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..." - 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..." - 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..." - 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..."















37 Comments
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.
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…
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!
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,
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.
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?
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.
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
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…
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
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/
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.
Dougal,
Scott Yang wrote a great plugin named Gravatar Cache, it might be worth checking out as well.
Al.
I ‘ve been using gravatars for a while on my blog.. Great Add !
Yep, just enabled Gravatar’s on my site. Seems like everyone is doing it now…
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/
I’m looking forward to it. I tried modifying comments.php, with no luck. I will now patiently wait till you’re done coding.
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.
Thanks for this. I will be using this feature in my blog.
I’m already using gravatar in my blog.
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!
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!
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
I just cropped my head in half darnit.
Another vote for Gravatars2. The option to have local avatars is great.
gravatar testing
Funny thing I can’t show up any gravatars on my site… Instead the plugin I used only shows up avatars from myblogblog…
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!
Haha. I still have no gravatar. There’s a link where it should be, but no picture. Weird.
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.
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.
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.
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
I’ve implemented gravatars on my own blog recently and everything seems to work smoothly. Really great plugin!
Joined gravatars.com and will download the plugin to try it out on my blog.
Gravatar testing
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
[...] 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 [...]
[...] 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 [...]