Gravatar
Uses Gravatar's global recognized avatar system to output the correct gravatar image URL based on the commenters email address.
This is an updated version of Tom Werner's original plugin and includes changes to the generated URL structure required to interact with the Gravatar service along with adding support for Movable Type 4.x.
Dave Abrahams
May 12, 2009 7:56 PM | Reply
Neat, but how do I use it? I'm not sure where/how to place these tags. Can you offer any hints? An example would go a long way!
Scott Boms
May 12, 2009 8:22 PM | Reply
You can use the MTGravatar template tag anywhere within a MTComment context. For example, you can do the following which allows full customization over how the output is rendered as HTML.
The plugin provides a few optional parameters which you can use as per the Gravatar API:
g(default if excluded),pg, r, x80(default), but any size from 1 to 512px can be usedThe simplest way you can implement the template tag is this:
John Raymonds
October 1, 2009 7:23 AM | Reply
A specific template example for 4.25 -- assuming it would even work with that version would be wonderful. Unfortunately my knowledge base is just large enough to get the install up and running and practically zero on customizing the default setup.
Scott Boms
October 1, 2009 7:23 PM | Reply
John - There should be no issues with the plugin on MT 4.25 and higher (I use it myself).
As far as examples go, If you want to use the code in the usage example above, you can do so as-is, obviously changing the image size if you want a larger/smaller size. That code would go into the Comment Detail Template Module to add a Gravatar for commenters though it's pretty much up to you where exactly that goes depending on what you need.