Can we synchronize our avatars with Gravatar?
Gravatar is getting really popular, may sites like stackoverflow or github have incorporated the avatars. It would be nice to have a consistent avatar throughout all forums and sites.
Related Article: Animated Avatars
is a solved DaniWeb Community Feedback discussion thread by <M/> that has 30 replies and was last updated 5 months ago.
firstPerson
Industrious Poster
4,046 posts since Dec 2008
Reputation Points: 851
Solved Threads: 626
Skill Endorsements: 15
As an avid avatar junkie, why would you want to have the same avatar on different forums? ;)
Just kidding, it's a nice idea. I'd actually never heard of Gravatar though, so I'd have to look into it. There's also the niggling worry about using plugins to off-site storage that may disappear in the future. It's fairly safe to say Facebook will be around a while (for our Facebook login), but having not even heard of Gravatar before there's a little doubt in my mind about its pervasiveness.
deceptikon
Challenge Accepted
3,502 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58
Gravatar is pretty old (pre-dating Fb). If you open their url with your email md5'ed then you get the image belonging to that address.
pritaeas
Posting Prodigy
9,546 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,495
Skill Endorsements: 98
Yup, it's pretty simple:
<?php
function gravatar($email,$size = 75)
{
$avatar = md5(strtolower(trim($email)));
return '<img class="avatar" src="http://www.gravatar.com/avatar/' .$avatar.'.jpg?d=identicon&s='.$size.'" alt="avatar" />';
}
echo gravatar('random@mail.tld');
?>
It returns an image even if there's no registration there.
cereal
Veteran Poster
1,196 posts since Aug 2007
Reputation Points: 358
Solved Threads: 232
Skill Endorsements: 22
Yup, it's pretty simple:
I didn't suggest otherwise. It's a smidge more complicated because we'd still want to support local avatars, but I'd almost call such a feature trivial to implement...almost. ;)
My concern had more to do with whether supporting Gravatar would be both sufficiently beneficial as well as likely to continue to be beneficial going forward.
deceptikon
Challenge Accepted
3,502 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58
I like Gravatar. Worked well on Disqus.
diafol
Keep Smiling
10,841 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,536
Skill Endorsements: 61
I have mixed emotions about it. What if I don't want the same avatar on all web sites that I visit?
Ancient Dragon
Achieved Level 70
32,275 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,591
Skill Endorsements: 70
I have mixed emotions about it. What if I don't want the same avatar on all web sites that I visit?
Then maybe provide an option to override the gravatar image? But IMO this seems too much effort for something not too significant, especially when there are more important things to be tackled (chat, spell checker etc.). :)
~s.o.s~
Failure as a human
12,247 posts since Jun 2006
Reputation Points: 3,307
Solved Threads: 787
Skill Endorsements: 55
I will be honest, Gravatar is great... but i don't value it very much. I guess i agree with AD on some aspects.
<M/>
Senior Poster
3,609 posts since Apr 2012
Reputation Points: 64
Solved Threads: 81
Skill Endorsements: 95
At first I was really against Gravatar because I had actually contemplated implementing it at the same time as Facebook integration but decided against it, because it seemed like just a silly third-party novelty with no added value.
However, a handful of other big sites use it, and I was a bit bored tonight, so I've caved. Let's see who uses it aside from LastMitch.
Dani
The Queen of DaniWeb
21,575 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 376
Skill Endorsements: 124
@Dani
However, a handful of other big sites use it, and I was a bit bored tonight, so I've caved. Let's see who uses it aside from LastMitch.
Can you switch the old one back with the question mark? I feel that's more like Daniweb style. A question mark on the profile. Look's nice more original. Can you attach the image with the question mark on it so I can upload it by myself. I'll little embrassed because I never actually up used much of the features on the profile section.
LastMitch
Industrious Poster
4,373 posts since Mar 2012
Reputation Points: 149
Solved Threads: 351
Skill Endorsements: 47
Before it had nothing. Why not just upload an avatar?
Dani
The Queen of DaniWeb
21,575 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 376
Skill Endorsements: 124
Before it had nothing. Why not just upload an avatar?
I haven't thought about it yet. Well I'll keep the new for now. It's looks nice. You did a good job!
LastMitch
Industrious Poster
4,373 posts since Mar 2012
Reputation Points: 149
Solved Threads: 351
Skill Endorsements: 47
firstPerson
Industrious Poster
4,046 posts since Dec 2008
Reputation Points: 851
Solved Threads: 626
Skill Endorsements: 15
Question Answered as of 4 Months Ago by
deceptikon,
LastMitch,
Dani
and 6 others