gravatar

Google account image from email

别等时光非礼了梦想. 提交于 2020-12-12 09:58:27
问题 Is it possible to retrieve a Google account profile image like a Gravatar image? I'm thinking it would be very handy to make a failover to Google image, if a gravatar is not found. 回答1: If you're able to get the Google user_id, you can retrieve the Google+ image. Unfortunately, there doesn't appear to be an easy way to get the user_id from an email address. 来源: https://stackoverflow.com/questions/20603424/google-account-image-from-email

Google account image from email

心已入冬 提交于 2020-12-12 09:57:01
问题 Is it possible to retrieve a Google account profile image like a Gravatar image? I'm thinking it would be very handy to make a failover to Google image, if a gravatar is not found. 回答1: If you're able to get the Google user_id, you can retrieve the Google+ image. Unfortunately, there doesn't appear to be an easy way to get the user_id from an email address. 来源: https://stackoverflow.com/questions/20603424/google-account-image-from-email

Gravatar: How do I know if a user has a real picture

非 Y 不嫁゛ 提交于 2020-01-11 17:10:47
问题 I have gotten the gravatar service working on my site. But I would like to know if the user has uploaded their picture or not. Is there a way to know this? 回答1: When constructing the URL, use the parameter d=404. This will cause Gravatar to return a 404 error rather than an image if the user hasn't set a picture. If you're using the .Net control linked to from the gravitar site, you'll need to modify the IconSet enumeration (and probably pull the code out of the control, so you can get at the

Gravatar: How do I know if a user has a real picture

我们两清 提交于 2020-01-11 17:10:10
问题 I have gotten the gravatar service working on my site. But I would like to know if the user has uploaded their picture or not. Is there a way to know this? 回答1: When constructing the URL, use the parameter d=404. This will cause Gravatar to return a 404 error rather than an image if the user hasn't set a picture. If you're using the .Net control linked to from the gravitar site, you'll need to modify the IconSet enumeration (and probably pull the code out of the control, so you can get at the

RFC for retrieving avatar image from email address

放肆的年华 提交于 2020-01-06 19:55:48
问题 AFAIK there is no RFC or other standard to retrieve an avatar (image/icon) from an email address. I think this would be a great feature. One possible solution: Get avatar via DNS user enters his email address. The domain belonging to this email adress DNS gets asked: Avatar for "foo@example.com" DNS replies: Get image from URL. For example: http://example.com/foo.png Questions Is there already a RFC or other standard? Why is there no such standard yet? How to get it come true? I know that

How do I implement Gravatar in Laravel?

只谈情不闲聊 提交于 2019-12-31 19:49:13
问题 What's the fastest way to implement Gravatar URLs in Laravel? I have a mandatory email address field, but I don't want to create a new column for Gravatars, and I'd prefer to use the native Auth::user() attributes. 回答1: Turns out, you can use a Laravel mutator to create attributes that don't exist in your model. Assuming you have a User model with a mandatory email column in the corresponding users table, just stick this in your User model: public function getGravatarAttribute() { $hash = md5

How to hide the physical path of the images

这一生的挚爱 提交于 2019-12-31 04:10:52
问题 In my application i display the image of user by giving the physical path of the directories like http://www.example.com/user_images/abcdefghijk.jpg But i dont want to expose this physical path to the external users to access the direct files. I want to implement the image retrieval as per the gravtar type image display. How we can do that? 回答1: In PHP you can use GD library to read the image. So the only way you need to create a image.php file & use the following code, <?php $imagepath="your

How to build a url of a GRAVATAR image from a given email

爱⌒轻易说出口 提交于 2019-12-22 04:02:16
问题 There is a simple way with php , a simple script or URL manipulation to build a URL for the gravatar image corresponding to an email? Ex. http://gravatar.com/avatars/avatar.php?email=myemail@myserver.com and this return a jpeg or png image. If there is no simple way like the example, what is the easiest way you know to resolve a url of the gravatar corresponding to an email?. Thanks 回答1: You can find a sample script with PHP code on their implementation site: http://en.gravatar.com/site

How To Get URL To Post Author's User BuddyPress Avatar Inside Wordpress Post Loop

帅比萌擦擦* 提交于 2019-12-19 09:56:37
问题 The Question How to get just the URL to a post author's avatar? The Requirements I want the url to the image that is hosted on my website. Image will be called in the loop of a post. The author of the post is the person whose avatar image I wish to display. What I've Tried A bunch of things, but mainly <?php echo get_avatar_url('user_email'); ?> It returns a url to the default 'mystery man' image hosted by Gravatar despite their being an avatar uploaded to my site for this test user.

Automatically create a gravatar account through a third party site

天大地大妈咪最大 提交于 2019-12-13 02:17:44
问题 Is it possible to automatically create a gravatar account, based on the registration data that a user on my site submits? I like gravatar, but I do not want to make my users register twice 回答1: Theoretically, you could use curl for manipulating the Gravatar site with get and post requests and parsing the result. This way you could use the data provided by the user on your site to create an account on Gravatar. Note that is they have some kind of captcha or equivalent, this will not work