just use the plugin runphp on your page in one of the side boxes it should say runphp with a tick box under it click it then your gravatar should work
erm well i use the code verision that i got off veerles blog
if you folow the tutorial you will end up with a exeptional flickr photo gallery:)
to see the out come of the tutorial you can see it in action on my blog in the side bar or view it on veerles blog.
THE TUTORIAL: http://veerle.duoh.com/index.php/blog/comments/fickr_badge_w3c_valid/