Return to Snippet

Revision: 62489
at February 26, 2013 20:56 by apphp-snippets

Initial Code
function show_my_gravatar($email, $size, $default, $rating)
  $params = '?gravatar_id='.md5($email).'&default='.$default.'&size='.$size.'&rating='.$rating;
  $output = '<img src="'.$params.'" width="'.$size.'px" height="'.$size.'px" />';
  echo $output;

Initial URL

Initial Description
With increasing of popularity of WordPress script, Gravatars have become a really quite popular. Now you may easy integrate them into your own script as they provide a very easy to use API.

Initial Title
Using Gravatars In Your Script

Initial Tags

Initial Language