Not a developer? Go to

Plugin and Theme Directory

Gravatar v1.4

By Scott Boms
Posted September 20, 2008, in MT Tags, Templates, Widgets.


Uses Gravatar's global recognized avatar system to output the correct gravatar image URL based on the commenter's 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.


Gravatar account.


Movable Type versions: 4.3



Dave Abrahams on May 12, 2009, 7:56 p.m. 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 on May 12, 2009, 8:22 p.m. 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.

<img src="<mt:Gravatar rating='g' size='36' 
  height="36" width="36" 
  alt="<mt:CommentAuthor default="Anonymous">" 

The plugin provides a few optional parameters which you can use as per the Gravatar API:

  • rating: g (default if excluded), pg, r, x
  • size: Dimensions for the Gravatar image. 80 (default), but any size from 1 to 512px can be used
  • default: Provide a fallback default image for users without a Gravatar. Requires a full URL.
  • border: Exactly what you would expect.

The simplest way you can implement the template tag is this:

<img src="<mt:Gravatar>" alt="<mt:CommentAuthor">

John Raymonds on October 1, 2009, 7:23 a.m. 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 on October 1, 2009, 7:23 p.m. 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.


adammorrison on May 31, 2018, 3:11 a.m. Reply

Love this plugin.

deck builder

roof repair


Leila on October 22, 2018, 5:47 p.m. Reply

Im loving this plug-in. Do you have any idea how my IT guy can have this working in my computer? fencing company charlotte


pastashio on January 11, 2019, 2:54 a.m. Reply

love this plugin. Great help

Candy Simeon

Candy Simeon on March 29, 2019, 12:13 p.m. Reply

No doubt, Gravatar 2 is a very good plugin of movabletype on the world of web development and it was my dream to read samedaypapers review and to take part in any such introductory event. I am glad to know about your journey on my favorite part of web development and also pleased to know your successful one year.


Horea on July 9, 2019, 8:49 p.m. Reply

I have just been using Google to search stock gravatar images online and I didn’t know about this much better way to have it. Just checked on them and they really got cool stuff! Thank you so much for posting this! :)

professional beard trimmer

sohbet odalari

sohbet odalari on July 14, 2019, 12:07 a.m. Reply

goood blog thanks. porn games & link kısaltma & oyun oyna & amateur porn & sohbet odaları & sohbetci & teen porn & teen porn & anon top

Manuel Rigley

Manuel Rigley on July 18, 2019, 4:52 p.m. Reply

I always love Gravatar because of the amazing features it offers! Manuel |


Stephanie2211 on July 31, 2019, 2:43 a.m. Reply

Is this text editor still working for everyone? tinting service in Baton Rouge


Danielperez123 on August 5, 2019, 6:02 p.m. Reply

I love the details of this article, the codes are perfectly presented. Thanks! bluon energy linkedin


Danielperez123 on August 5, 2019, 6:03 p.m. Reply

I love the details of this article, the codes are perfectly presented. Thanks! [url=]bluon energy linkedin[/url]


Danielperez123 on August 5, 2019, 6:04 p.m. Reply

I love the details of this article, the codes are perfectly presented. Thanks!


BillyM on August 7, 2019, 4:58 a.m. Reply

We will be testing the Gravatar in our website and we will see how it goes.


Matilda on August 26, 2019, 1:02 p.m. Reply

I saw GRAVATAR in other websites and it is pretty amazing. advanced epoxy flooring long island


Stephanie2211 on August 27, 2019, 1:36 a.m. Reply

I’ve already got it added to the following site: roofing contractor


Lucifer on September 2, 2019, 1:08 p.m. Reply

I find it hard using gravatar, however, my friends are good with it. This website might help though.


Danielperez123 on September 5, 2019, 5:22 p.m. Reply

It’s my first time to use this, can you help me? Thanks! headstone engraving / monument engravings


moosa18 on October 16, 2019, 9:21 a.m. Reply

This is amazing post, thanks for posting. All the KCPL users check kcpl login


sova213 on November 4, 2019, 7:27 a.m. Reply

Ich möchte mehr darüber zu lesen. Prompt, welche Literatur zu studieren?

Leave a Comment