Featured Post

WordPress for Android – Review

Posting From My Android I just happened across the WordPress for Android app in the market today and thought it might be useful for those times that I have an uncontrollable urge to blog when I’m away from my notebook It has a simple rich text editor with Bold, Italic, Link, and Block-Quote. It...

Read More

Follow @dougrdotnet on Twitter

Gravatar Support in Older Versions of Blog CFC

Posted by dougr | Posted in CF | Posted on 07-10-2007

Tags: ,

1

I am not sure at which version BlogCFC’s support for Gravatar and the Gravatar service came together but I wanted to post a quick fix for those who may still be having problems with Gravatars on their blog.
I am currently running version 5.5.006.

Gravatars have been pretty low on my list of priorities but tonight I found myself going WTF is up with my Gravatar support. Then I noticed that my Gravatar has was all upper case. I copied the url and changed the hash to lower case, low and behold my gravatar appeared – Happy day!.
In Index.cfm, inside the cfoutput for the query comments, around line 199, find the following line of code:

<cfif><imgsrc="http://www.gravatar.com/avatar.php?gravatar_id=#lcase(hash(email))#&rating=PG&size=40&default=#application.rooturl#/images/gravatar.gif" alt="#name#'s Gravatar" border="0" /></cfif>

If your’s does not have the id=#lcase(hash(email)) then add it as shown above.

There you go…