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?
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?
Testing your Gravatar implementation. Congrats!
“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!
Cool, lets see my gravatar ๐
To see if it still works…
I’ve had a grav account for a long time but disabled it when they went thru their upgrade/server change/2.0 thingy.
Aren’t you gonna tell us what lines did you write to enable Gravatars?
Let me test my gravatar here then =)
Where is the gravatar now?
So what are the two lines of code ๐
I am excited to have gravatar working so much faster now! Good stuff Matt!
I just recently removed Gravatars from my blog, as I thought no one used them still. Now that Automattic runs the show, I’ll have to put them back in.
Yes, it is pretty good. I got mine some time ago.
Well done… can you public the php code?
Bye,
P|xeL
And the the 2 lines code is ? ๐
ciao
wolly
Yeah, I did, and let’s see what this will be displayed!
PS. What are those 2 lines?
Hmm… let’s see. Care to share those 2 lines of PHP Matt? I’m all for keeping the plug-in count low.
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.
Did not! Created one after seeing this post. Other web services could learn how “setting up an account” can be made simple and no simpler ๐
Could you be more specific about those 2 lines?
I believe I do!
very cool, thanks!
Could tell us how? The secret two lines of code?
I have an account. I wonder if mine will show up as its been quite awhile since I’ve logged into Gravatar.
Could you please post the PHP code. I would like to implement this as well on my blog.
This is more than two lines, but try it:
http://pastebin.ca/743979
Just put it in your comments loop, I put it right before the comment_text() call.
cool stuff ๐ had mine for years!
hmmm
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…
Nice work!
I use MyAvatars which uses both mybloglog and gravatar so I have the best of both worlds. ๐
i’ve added the code. works great! thanks matt.
Nice ๐
I guess is going to have place in future releases of Wp ๐
Thanks for the code Matt! I just re-Gravatar enabled my blog — hopefully Automattic’s acquisition will lead to greater adoption of this great idea!
“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 WordPress.com avatars to the Gravatar API it’ll have more users than MyBlogLog or Gravatar ever had, combined.
Testing my gravatar!
Wow. So many more people here use Gravatars than on my site. My peeps gotta get on it!
Is my gravatar showing?
Thanks for supporting Gravatar!
I love that Automattic picked up Gravatar. I’ve always thought it was a neat idea, and now it works great!
gravatar.. hmm.. yummy!
Thanks for the code.
Let’s try it out.
Try it ๐
Thank you!
Nice!
i think i’ll give this a shot over favatars
Very Sweet, gotta add the code real soon !
I wanna try it too ๐
Foo bar baz. Once again kudos on the acquisition ๐
Looking forward to wordpress.com & Gravatar integration ๐
People love images.
Thanks Matt for the tip.
Testing mine here.
Cheers,
Arunn
testing
Sweet!
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
time to test mine!
i should have one, maybe.
test here…
oh yeah! My tip: If you have kind of an “official” identity/email-address representing ore than one persons, use a screenshot thumbnail of that website as the gravatar.
Try it!
Looks great!
thanks for doing this!
gravatars are kind of cool and do make yourself easily be rememberd by other ppl + is simply do look neat ๐
–rgds marcO
testing. i think i already have an account
Let’s try! ๐
thx for all you do!
Let see if mine works?
Hehe, gravatars are such fun. Thumbs up for enabling ๐
kudos to you dear and yes i like gravatar myself
Do I show then?
I wanna see my gravatar, too. ๐
Excellent news – just about to swap over to WordPress, so glad Gravatars are supported.
Whoops – was it this email?
it is not work on my blog
Great! Thanks!
Testing testing 1…2…3… ๐
I hope this will be a part of WordPress 2.4 ๐
Yeah i have a gravatar account!
great, i will apply for my blog soon ๐
Test my avatar ๐
You guys are Cool! Enabling all paid features for free!!
And here is my gravatar! ๐
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 ๐
I really like Gravatar!! ๐
Matt » I think it’ll work even better with strtolowering the email before md5-hashing it so that Matt@photomatt.net gets the same gravatar
(hey, how come mine doesnt show ?)
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.
I use the K2 theme, which offers support for Gravatar out of the proverbial box (with Tom Werner’s plug-in, though, which I don’t mind)…
Hey – it doesn’t show mine!
Testing..
Showing my GrAvatar ๐
Just seeing how it looks …
Nice to see that more and more people are finally pickin it up…
…plug in the WordPress.com avatars to the Gravatar API…
Sounds great! I’m looking forward to it, too.
Nick
Always had one before they became mainstream.
Congrats on the acquisition Matt. =)
I signed up for my gravatar. ๐
Greetings from Beijing, China ๐
testing
(:
Coolio dude!
Neato.
Yupp, I’ve got one ๐
Test one, two, three.
I’ve had for 5 or 6 months. I just recently upgraded to pro (before Automattic bought Gravatar), so I could use multiple email addresses. Sweet!
Definitely works better than the unreliable plugin, and I can finally have customs for each theme, without having a fuckton of errors. ๐
Thanks for the code, Matt!
I just added it to my WordPress blog as well. Even though no commenting visitor of my site has a gravatar, it is still nice to see my own comments with my gravatar ๐
I added it to my site, right in front of the place Matt said to add it. Still nothing.
It’s that simple? I’m definately putting this into my blog!
Thanks for the 2 lines Matt… But what’s your thoughts on caching the gravataar avatars? I also run the Gravataar2 plugin to do some caching, wouldn’t that be the suggested use?
test
OK – great pick up Matt. Set it up (very simple) and will be implementing on my blog today.
Thanks.
Ok, is working now, sorry! Thank Matt for the tip. I hope WordPress 2.4 can have this function integrated ๐ that would be rad.
I think I have one for my other email address, but thought I’d see if there was one for this address.
Testing my gravatar.
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.
Hi Matt. Congrats on the Gravatar acquisition. Will Gravatars become part of the WP core?
Thanks for the tip, using it now!
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 ๐
I had an account as well.. Thanx for the tip !
Ah, The world of WordPress just keeps getting better!
testing my gravatar
yes i have ๐ just want to test
Hi Matt, I wonder is that nice to have site author’s pingbacks (i.e. internal links that appears in comments loop) printed with a avatar too, e.g. these sample author’s pingback and comment?
Thanks for the tips, and thanks for working with gravatar.
Cool! Just signed myself up on gravatars and gravatar-ed my blog site!
WordPress ROXXORS!
Apparently, my last comment offended …
Sorry.
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.
Testing, testing, 1, 2, 3….
Your blog is beautiful. ๐
Thanks.
Just testing here.
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.
ooh yay ๐
hmm will my gravatar show up?
i will make my site gravatar ready too. will test that lines of code someone posted here.
What’s my gravatar look like?
I think that use of gravatars will increase rapidly now when automaticccc bought it.
Funny how popular sporting a few pixels next to your name can be; I certainly never tire of that unicorn popping up by mine.
Testing mine…
Thanks so much. Thanks for all your hard work!
Thanks for the code and the link to the gravatar site! Very cool.
Gravatars are great – helps making you feel like beeing in a “real” (face to face) conversation.
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.)
Let’s see. Yes!
eh
I think I have one… Let’s see.
Greetings!
Very cool, and very easy!
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.)
Gravatar is cool, but I have problems with some users of my blog who cannot speak English and they did not manage to set up. I suggest the translation for the principal languages!
Blog comments are so much better with gravatars. I’ll be telling my readers about it. I just used your tips to get in installed on my blog.
I’ve been Gravatarred-n-feathered since version 1. ๐
testing
Time to test mine ๐
Thanks Matt
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).
Cheers – a toast to the gravatars – may they have a long and happy life.
cool.
Hi everyone, I have modified the code so you can put it on index.php, single.php, and comments.php (and it’s customizable).
Check it out: http://urltea.com/1ulq
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.
Oops! My blog address above is wrong. It should have been this instead.
Sorry,
so is Automattic’s acquisition of gravatar goign to kill mybloglog?
I have signed up on gravatar…
looking forward to a more stable gravatar….
Automattic had jolly well better fix Gravatar so it supports alpha-blended PNGs or I might murder somebody.
This is my gravatar ๐
testing…
Hmm, still no gravatar here?? and where’s the code already? I’m sorry I must have missed it!?! blur now ๐
Trying uppercase email domain name…
I still can’t get gravatars to work on my site ๐
Testing gravatar.
i just discovered this. its pretty handy ๐
Thanks, Matt! Great work!
Yep i have ๐
let me see whether mine can be seen ๐
Hmmm?
Testy
testing my gravatar.
Since everyone else is doing it…..
So, let’s try it!
…also testing…
Totally Hot! Mine is up and going on my site. Big thanks, Matt.
let’s see …
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?
For sure! Congrats and thanks for boosting Gravatar! ๐
sweet, works great!
Do I? I should, but my comments seldom gets past Akismet on your site Matt ๐
Proviamooooo
Testing my Gravatar.
Good stuff. Somehow I can’t resist commenting now ๐
testing out my avatar – i haven’t seen it work on anybody’s website.
thank you! I spent countless hours trying to get comment avatars to work on my sites and your code is the only code that has worked.
Mine has never worked. Will it now?
The link on my site to download my changes to the gravatar plugin was broken – I had moved my site and the download manager templates needed to be tweaked. I tested it and it works now:
http://dpotter.net/Technical/index.php/2007/10/22/integrating-gravatar-support/
While I was at it, I also added an admin UI page so that the parameters could be changed without changing the code in the theme.
Enjoy!
David
Taking it for a spin!
test
Just to try it out and see if it works
tHanKs MaTt! Just Testing Mine.. And HERE WE ARE!! THE COROIJO! (means ‘green cocroach’!)
I’ll write about this.. ๐
let me see whether mine can be seen
Ping test
I’ve been trying to see if I can get my gravatar to work, hopefully this time
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!
Just created an account. Never did before for some reason.
This is neat!
Or not ๐
this is really cool. i just signed up at gravatar to test it.
Testing my new gravatar…
Nice! I also added gravatar to my webblog..
I had to do it in asp.net (thats how i coded my page)
Very easy!
I’ve got a gravatar ๐
I have gravatar but it doesn’t appear, no idea why ๐
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 ๐
I got one too ๐
Wonderful job!
Let’s test this beast!
We are considering updating to ad gravatar support on our site- i think this is a fantastic service and now that the user base is larger its looking even more promising.
Remember a while ago when I posted my modified code of Matt’s Gravatar code? The new link is here: http://mushiku.com/viewtopic.php?p=117#117
Great stuff Matt! Thanks for sharing.
Mine has never worked elsewhere; maybe it will now?
I think that Gravatar is a great service that more websites and blogs need to embrace.
The signup process for Gravatar is killer. I think all minimalist PHP/ruby coders should use their signup process as a benchmark.
Nice!
nice!