Using Gravatars with GraffitiCMS

by Otto on July 17, 2008

I quickly implemented Gravatars  in GraffitiCMS today.  The only issue I had was due to my migration from dasBlog.  During the conversion, comments that were migrated didn’t have the commenters IP Address migrated as well.  In my post.view file for Graffiti, I added the following code:

#if($comment.IPAddress)
  $macros.Gravatar($comment.Email, $comment.Name, $comment.IPAddress, "%{size ='34'}")
#end

Works great for my needs.

Comments on this entry are closed.

Previous post:

Next post: