Any chance we can get support for Gravatar? I'd love to see this in user profiles. It makes complete sense with the whole SSO thing.

Comments

iraszl’s picture

Shouldn't be so difficult to get is done:

Implementing gravatars with PHP is quite simple. PHP provides both md5() and urlencode() functions, allowing us to create the gravatar URL with ease. Assume the following data:

$email = "someone@somewhere.com";
$default = "http://www.somewhere.com/homestar.jpg";
$size = 40;

You can construct your gravatar url with the following php code:

$grav_url = "http://www.gravatar.com/avatar.php?
gravatar_id=".md5($email).
"&default=".urlencode($default).
"&size=".$size;

Once the gravatar URL is created, you can output it whenever you please:

Only local images are allowed. echo $grav_url; " alt="" />

iraszl’s picture

Only local images are allowed. echo $grav_url; " alt="" />

iraszl’s picture

{img src="{?php echo $grav_url; ?}" alt="" /}
replace { with < and } with >

forngren’s picture

Version: 4.5.0 » 4.7.3
magico’s picture

Version: 4.7.3 » x.y.z
kkaefer’s picture

Version: x.y.z » 6.x-dev
Status: Active » Closed (won't fix)

This won't be implemented directly into Drupal. It can be easily done with a module.

damnian’s picture

Title: Gravatar Support? » Gravatar est mort, vive Pavatar!

I just created a Pavatar module. I believe Pavatar to be significantly better than Gravatar, since it doesn't rely on a central service point.

shadyman@erroraccessdenied.com’s picture

Title: Gravatar est mort, vive Pavatar! » Gravatar Module?

So is anyone in the process of making a gravatar module?

Narno’s picture

Gravatar module for Drupal 5.x & 6.x : http://drupal.org/project/gravatar