irwan

Use Gravatars in Your Application

Nov 17th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. function show_gravatar($email, $size, $default, $rating)
  2. {
  3.     echo '<img src="http://www.gravatar.com/avatar.php?gravatar_id='.md5($email).
  4.         '&default='.$default.'&size='.$size.'&rating='.$rating.'" width="'.$size.'px"
  5.         height="'.$size.'px" />';
  6. }
  7.  
Advertisement
Add Comment
Please, Sign In to add comment