Pete Freitag Pete Freitag

Now with Gravatar

misc

I just threw in support for Gravatar in my blog comments. If you go and sign up for a gravatar account, you can assign a picture to your email address, then when you post a comment on my blog or other blogs that support gravatar, your picture will show up next to it.

It's pretty easy to implement gravatar on your blog, you just use an img tag that points to gravatar.com with an MD5 hash of the commentors email address in the query string.

So go and create an account, and you can test in my comments here if you want (I am only showing PG, and G rated pictures).


Like this? Follow me ↯

Now with Gravatar was first published on November 15, 2005.

If you like reading about gravatar, blog, or blogging then you might also like:

Comments

This is what it looks like!
by Pete Freitag on 11/15/2005 at 2:17:40 PM UTC
That's an interesting idea. I just signed up.
by Dan G. Switzer, II on 11/15/2005 at 2:53:25 PM UTC
Since Pete didn't mention this, you should be able to use the built-in CF function hash() to generate an MD5 string of a user's e-mail.
by Dan G. Switzer, II on 11/15/2005 at 2:57:38 PM UTC
Nice, and it would also be nice if one could submit his/her URL in the comments.
by Tjarko Rikkerink on 11/16/2005 at 3:05:30 AM UTC
Reguarding URL's in the comments - The reason they were never there is that I was afraid I'd get hit with comment spam too hard. Now there is rel="nofollow" but that doesn't really stop them from trying, which is the truly annoying part.
by Pete Freitag on 11/16/2005 at 7:40:19 AM UTC
... and as a side note, you might want to do gravitar.com a service and cache the images for a day or so on your server.
by Jehiah on 11/16/2005 at 9:31:38 AM UTC
(and as a another sidenote, the ordering of your comments is off)
by Jehiah on 11/16/2005 at 9:34:29 AM UTC
just wanted to see if it really works...
by phoenix on 02/28/2006 at 2:02:05 AM UTC
...it does-yea! Thank you!
by phoenix on 02/28/2006 at 2:03:59 AM UTC
If someone enters the email address of another person, will that gravatar appear? I mean, is there any authentication of the sender?
by Gary on 11/12/2007 at 11:16:27 AM UTC