The comments on this blog are now Gravatar-enabled. I didn’t use a plugin, just 2 lines of PHP. It’s pretty fascinating going through old posts and comments and seeing who has a Gravatar already. Do you have an account yet?

238 replies on “Gravatar-enabled”

“Do you have an account yet?”

Why yes, yes I do. 😉 I’m so glad to see you’ve picked up Gravatar. I’ve used the service for years, and always considered it a simple but pretty brilliant idea. Great to see it’s getting the attention it deserves!

How about you show us newbs those two lines, eh?
Apart from that … I was glad to hear that you guys had bought Gravatar. It’s a great idea and concept, and I’m confident that you and the rest of the Automattic team will make it even bigger and better.

I’m assuming those 2 lines of code just do an image tag around the Gravatar URL for a person’s e-mail?

That’ll work, the main difference with the Gravatar plugin is that it stores a local copy of the Gravatar to reduce the load on the Gravatar server. Users’ browsers will presumably cache the Gravatar once it’s loaded, so it’ll load once per user instead of once per site…

I created a Gravatar account but never had any luck loading my avatar from the Gravatar site… I guess I’ll see if it loads on this post…

“That’ll work, the main difference with the Gravatar plugin is that it stores a local copy of the Gravatar to reduce the load on the Gravatar server.”

That’s only useful if you want to create more load on your server. The Gravatar server is or will be faster than yours could ever be and closer (lower latency) to your visitors. It will also update faster when someone updates their avatar.

Jenny, MyAvatars looks very cool but once we plug in the avatars to the Gravatar API it’ll have more users than MyBlogLog or Gravatar ever had, combined.

Hmm let me try it, i have wanted to add something like this to my blog but not too much of a code person any specific instruction on how to add that 2 lines of code i have seen the code but don’t know where to put it

Woo hoo. Presumably with the new system for distributing gravatrs, there’s no need to use local caching to reduce load on the service? I’ll look at adding that code to my site – thanks 🙂

[…] baru baca blognya Matt kalo dia implement gravatar tanpa plugins, cuma 2 baris kode php read here. Ternyata dia cuma maenin di tag image URL gravatarnya hehe.. ga kepikir kupret.. harap maklum […]

I expect it’s on the todo list already, but it should definitely possible to resolve more than one email address to a single gravatar account/identity. I just created a gravatar account, and then immediately had to create another one when I realised it wasn’t the mail address I use on my blog. I suspect that when the WP and Gravatar datasets merge, I’ll wind up with three.

It’s that simple???? O.O I always assumed it was complicated by the look of the WordPress Gravatar plugins. I never knew it would only require 7 lines of code in the theme to enable Gravatars.

Keen. I expect to see a much broader adoption of Gravatars now, with Automattic’s bully pulpit working in its favor. I think I’ve only ever had one comment from someone with a Gravatar 🙁

Apparently, my last comment offended …


Anyway, Gravatars are working now on my site. Looks nice.

I do suggest some sort of support forum on the Gravatars page for those with questions, difficulties, etc.

That’s wonderful. I’ve been hoping that Gravatar would work better in the future. Well, the future is now! That means I can finally enable it on my site, sweet.

I really like the fact that you don’t have some sort of silhouette for those without gravatars. (Some folks are just too shy, and/or opposed to the focus on personality.)

Gravatars seem to be really popular amongst the readers here. Few people on my blog have them and I’m thinking of going through and getting rid of the default silhouette pic so it’s not so cluttered. But it is pretty cool to see what people look like, or at least what kind of picture they choose to display. (I’m too lazy to actually stick a picture of myself in.)

More importantly — now you have a Gravatar account, Matt. 🙂

And to Patrick Havens re: caching of Gravatars — the main reason for that was the horrible performance and downtime of the service in the past. Hopefully, that’ll be fixed now that Barry can work his magic and spread the service out over more than one server. Also note that if you’re caching them, you’ll be increasing hits to your own server as well as filling up HTTP pipes that could be used for other things (browsers limit concurrent HTTP requests by domain).

This was just the motivation I needed to add this support to my sites. Thanks.

I reviewed the different ways to integrate Gravatar support, including this way and using the Gravatar WordPress plugin, on my blog.

I also updated the plugin to call strtolower on the email address and to add a function to get the Gravatar URI string. You can download it from my blog as well.

[…] Matt说只写了两行代码支持Gravatar,我没找到代码是怎样的,但是经过实验,以下的代码是绝对可行的(记得关掉现在的插件)。 <?php  […]

It’s good news. But when I try to post a comment here, there is long list of comment. It’s make me see the negative site. Site with Avatar enable take time to download all Avatar. This make me re-thinking, should I enable Avatar on my blog?

The Many Faces of Social Networking

The term Avatar is generally synonymous with the metaverse — but in social-networking circles, the term Gravatar has become a widely adopted term. These are the little 75 or 80 pixel square icons that users add to their profiles, or share attache…

Sorry for the “me too”, but I just wanted to say w00t – gravatars are cool! Glad to see WordPress pick them up, and look forward to seeing them come to life now that they have some pretty major backing!

Wonderful, this will add great value to my site. Will need it in another language to introduce my readers to it, though. (Wouldn’t mind helping translate)…

For the future, I hope it will offer the ability to see all comments made by a user on my site, and ability to connect to other Gravatar users 🙂

[…] With the launch of the Blueprint site, and all the hubbub over the release of Prologue, there are now a couple of good examples of using gravatars for more than just comments. The prologue function is a little weighty to be copied to other themes, since it’s built for, so i thought I’d share my simple method. It’s almost identical to the method matt posted, […]