The logo Gravatar A few weeks ago has spread the news of the acquisition of Gravatar by Automattic , the company behind WordPress . One of the most immediate consequences of this acquisition is a greater integration between WordPress and Gravatar, a service that is used to record an avatar "universal" to match your email address. The avatar that will appear automatically created every time you post a comment on any Internet site set up properly, without even having to register for the site you're visiting! To bring up the avatar in the comments you can use the plugin available on the official Gravatar or draw a few lines of code that allows the display of avatars in your programming language.

The theme I'm using for this blog, for example, provides a simple example of how everything functions:

$myGravaratURI=" http://www.gravatar.com/avatar.php?gravatar_id=".md5($comment->comment_author_email)."&rating=PG&size ="; ?>
<script type="text/javascript">
<!--
function PopupGravatar(){
var w = 100;
var h = 100;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("<?php echo $myGravaratURI.'80'; ?>","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
//-->
</script>
<div class="gravatar">
<a href="javascript:PopupGravatar();">
<img src="<?php echo $myGravaratURI.'32'; ?>" title="Gravatar image" />
</a>
</div>

The passing of the baton at Gravatar Automattic should revive the project, so I think its worthwhile to spend 3 minutes to create your own on the official website at http://site.gravatar.com .

Share this content:
  • del.icio.us
  • Google Bookmarks
  • Digg
  • Facebook
  • Technorati
  • MySpace
  • Twitter