Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
user.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2004 at 03:21 UTC
Updated:
4 Nov 2008 at 18:32 UTC
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
Comment #1
iraszl commentedShouldn'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:
Comment #2
iraszl commentedComment #3
iraszl commented{img src="{?php echo $grav_url; ?}" alt="" /}
replace { with < and } with >
Comment #4
forngren commentedComment #5
magico commentedComment #6
kkaefer commentedThis won't be implemented directly into Drupal. It can be easily done with a module.
Comment #7
damnian commentedI just created a Pavatar module. I believe Pavatar to be significantly better than Gravatar, since it doesn't rely on a central service point.
Comment #8
shadyman@erroraccessdenied.com commentedSo is anyone in the process of making a gravatar module?
Comment #9
Narno commentedGravatar module for Drupal 5.x & 6.x : http://drupal.org/project/gravatar