Adding Gravatar Support to a Graffiti Theme

I recently updated the Monochrome Graffiti theme to support Gravatar but I thought I'd do a separate post on how to add support for it to your own themes. The good news is Graffiti already has support for Gravatar built it so all you need to do is add the image to your theme. Simply add the following line inside the #foreach($comment in $comments) loop in your post page.

$macros.gravatar($comment.Email, $comment.Username, $comment.IPAddress, "%{size ='60'}")

If the user doesn't have a Gravatar, it will automatically handle it and display a generic image. Of course, you can change the size attribute to make the image larger or smaller, but that's all there is to it. :)

26 comment(s) so far

 avatar

Damn, didn't even realize it supported it out of the box! :)

 avatar

Awesome and thanks for sharing this!

 avatar
Kev wrote on January 23, 2008

You're going down at football tonight you big girl

 avatar

Thanks a lot! Was looking for it!

 avatar

Thanks for the great reference post.

 avatar

i feel lucky can read this useful news. now i find something what i want to know.. thank you for this great information..

 avatar

thanks for info, i'll try it

 avatar

That's cool, I didn't know about it. thanks for informing.

 avatar

thanks for info

 avatar

hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.

 avatar

thanks for info, i'll try it

 avatar

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

 avatar

hi, this is the first time i visit here, your blog is very interesting. i really like it.

 avatar

Thanks, didn't realize it was so easy to add Gravatar support.

 avatar

Thank you for the tutorial.

 avatar

That's excellent advice and a helpful tutorial.

 avatar

i really appreciate this your good article

from there i get something that i want to know

thanks for this usefull informations for blogengine benginner like me..

 avatar

i really appreciate this your good article

from there i get something that i want to know

thanks for this usefull informations for blogengine benginner like me..

 avatar

thanx for all "good blog"

 avatar

These are some really nice themes - thanks for sharing

 avatar

These are some really nice themes - thanks for sharing

 avatar

Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.<a href="http://www.fooddietandhealth.com">Food Recipes</a>

<a href="http://www.101foodrecipes.blogspot.com">Food Recipes</a>

<a href="http://www.skin-care333.blogspot.com">Skin Care</a>

 avatar

Great themes, and it seems you still support them well. Some of the widgets look pretty cool also.

 avatar

I recently updated the Monochrome Graffiti theme to support Gravatar but I thought I'd do a separate post on how to add support for it to ...

 avatar

A few days ago I wrote about a new Graffiti theme that I created for ... You can even add multiple email addresses, each with their own image if you want. ... provide support for Gravatar and Disqus like this theme does. ...

 avatar

simply amazing theme... i really like this.. i will use it...

Post your comment