With the use of following snippet below, you will be able to use Gravatars in your script.
1 2 3 4 5 6 7 8 | <?php function show_my_gravatar($email, $size, $default, $rating) { $params = '?gravatar_id='.md5($email).'&default='.$default.'&size='.$size.'&rating='.$rating; $output = '<img src="http://www.gravatar.com/avatar.php'.$params.'" width="'.$size.'px" height="'.$size.'px" />'; echo $output; } ?> |
Snippet Source/Credit: apphp.com