bobafred

bantha poodoo
completely incomplete.

Gravatars

Thursday May 01, 2008

11:04:26 am - Site News - Comments (6)

I turned on Gravatar support for comments last night. I had actually been messing around with writing a plugin for Gravatars about a year ago, but never really finished it. And, it seems that there are a bunch of plugins already written, so there’s really no need for me to finish it now. Some of the plugins will actually locally cache the images so that page load is faster. This seems like a nice feature, but now that Gravatar is part of Automattic, and seemingly running on their servers, retrieval is pretty zippy.

So, for now, I’m just using the WP 2.5 function get_avatar. Read about it’s usage here. There’s also lots of other great info on that page, including pre-2.5 implementations.

The get_avatar function returns an image tag with a class named avatar. So, it’s easy to style as needed. I’m using:

.avatar {
	float: right;
	padding: 2px;
	border-left: 1px solid #c0c0c0;
	border-bottom: 1px solid #c0c0c0;
}

All you need to do is create an account with the email address you leave on blog comments and upload an image to have your very own globally recognized avatar. It’s really a pretty nice service.

Tags: ,

Comments

  1. hakeber
    Thursday, May 01, 2008 11:08:38 am

    Testing

  2. bobafred
    Thursday, May 01, 2008 11:14:17 am

    are you satisfied with the test results?

  3. hakeber
    Thursday, May 01, 2008 11:38:08 am

    It definitely works… kind of small though.

  4. bobafred
    Thursday, May 01, 2008 12:34:11 pm

    yeah. i like them that way, though. didn’t want to mess with the comment header too much.

  5. mrpbody33
    Monday, May 05, 2008 09:45:19 am

    Testes.

  6. Seth
    Thursday, May 08, 2008 12:17:23 pm

    @mrpody33: One, Two, Three?

Leave a comment


©2003-2010 bobafred : 0.341 seconds.