Dougal Campbell's geek ramblings

WordPress, web development, and world domination.


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=40 and size=80, but not with size=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.

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in Blogging, WordPress and tagged , , , , , , , , , , , , . Bookmark the permalink.

39 Responses to Gravatars

  1. Pingback: Ya no hay excusas para no usar Gravatar » Blogueando con Francesc Josep

  2. Pingback: Stack Overflows Under Control »

Leave a Reply

%d bloggers like this: