gravatar

upload picture through external website to gravatar profile

杀马特。学长 韩版系。学妹 提交于 2019-12-03 08:05:15
I was wondering if it is possible to create an upload function to upload picture through my own site to the gravatar site? Yes, this is possible. See http://en.gravatar.com/site/implement/xmlrpc/ , specifically the grav.saveData or grav.SaveUrl calls. Yes it's possible! import base64 from xmlrpclib import ServerProxy, Fault from hashlib import md5 class GravatarXMLRPC(object): API_URI = 'https://secure.gravatar.com/xmlrpc?user={0}' def __init__(self, request, password=''): self.request = request self.password = password self.email = sanitize_email(request.user.email) self.email_hash = md5_hash

Loading gravatar using jquery

喜欢而已 提交于 2019-12-03 04:16:25
问题 Just trying to crate a simple comment form on a blog. I want to load the user's gravatar (using jQuery) when he/she writes this in the email box. How can I do that? 回答1: The gravatar url looks like this: http://www.gravatar.com/avatar/<md5hashofemail> Here are the rest of the options for the URL. So all you're going to have to do is include a function called md5 that returns the md5 hash of the user's email. There are many online that do this, but I believe https://github.com/blueimp

Loading gravatar using jquery

送分小仙女□ 提交于 2019-12-02 17:34:48
Just trying to crate a simple comment form on a blog. I want to load the user's gravatar (using jQuery) when he/she writes this in the email box. How can I do that? Paolo Bergantino The gravatar url looks like this: http://www.gravatar.com/avatar/<md5hashofemail> Here are the rest of the options for the URL. So all you're going to have to do is include a function called md5 that returns the md5 hash of the user's email. There are many online that do this, but I believe https://github.com/blueimp/JavaScript-MD5/blob/master/README.md works well. After that, just do: // get the email var email =

Getting a facebook profile picture from an email address

隐身守侯 提交于 2019-11-30 12:06:55
问题 I'm trying to get a user's facebook profile picture based on their email address. Effectively, I want to offer my users the option between using Gravatar for their image, or Facebook. However, the only way I know of to get a user's facebook image is via: http://graph.facebook.com/[FBOOK USERNAME]/picture?type=large Since the usernames may vary between facebook and my site, I would like to do this via email address rather than username. How do I query for someone's facebook profile picture via

Getting a facebook profile picture from an email address

▼魔方 西西 提交于 2019-11-30 02:01:47
I'm trying to get a user's facebook profile picture based on their email address. Effectively, I want to offer my users the option between using Gravatar for their image, or Facebook. However, the only way I know of to get a user's facebook image is via: http://graph.facebook.com/[FBOOK USERNAME]/picture?type=large Since the usernames may vary between facebook and my site, I would like to do this via email address rather than username. How do I query for someone's facebook profile picture via email address? I see this question has a couple of years already but the same search approach can be

How to generate the random default “gravatars” like on Stack Overflow?

自闭症网瘾萝莉.ら 提交于 2019-11-29 22:53:14
How does Stack Overflow auto-generate the gravatars for those users who do not upload a picture or who have not created a Gravatar icon? Where do these random avatars come from, and how can I generate them for my own site? Andreas Grech The 'random' colorful gravatars are displayed because this query string parameter is being added to every gravatar source URL: d=identicon This is done so that if the user doesn't have a gravatar image associated with his email, this 'random' image is displayed, instead of the default blue gravatar image. The following displays the 'default' blue image because

How to generate the random default “gravatars” like on Stack Overflow?

落爺英雄遲暮 提交于 2019-11-28 18:34:54
问题 How does Stack Overflow auto-generate the gravatars for those users who do not upload a picture or who have not created a Gravatar icon? Where do these random avatars come from, and how can I generate them for my own site? 回答1: The 'random' colorful gravatars are displayed because this query string parameter is being added to every gravatar source URL: d=identicon This is done so that if the user doesn't have a gravatar image associated with his email, this 'random' image is displayed,