gravatar

What is a good gravatar example email?

丶灬走出姿态 提交于 2019-12-12 01:45:47
问题 I just made a demo after seeing a similar one in the Ember.js documentation that gets your gravatar based on your email. I’m currently using tomster@emberjs.com as the default but that seems wrong as it’s a React app. Does anybody know of a good default to use? 回答1: What is a good gravatar example email? AFAIK, there isn't one. The best idea is to invent a fictitious email address and register a Gravatar for it. Or "fake" it in your application, demo, whatever. Or use your own. Or if the

Gravatar - setting custom default avatar - avatar not shown

走远了吗. 提交于 2019-12-11 11:46:36
问题 I am on development environment on localhost:3000 I followed railscasts episode on Gravatar. I am trying to set my custom avatar image that is located in assets/images. The code I use is this: def avatar_url(user) gravatar_id = Digest::MD5.hexdigest(user.email.downcase) default_url = "#{root_url}assets/AwesomeAvatar.png" "http://gravatar.com/avatar/#{gravatar_id}.png?s=100&r=g&d=#{CGI.escape(default_url)}" end The avatar does not load. When I try to save the image there is an error: "Failed -

WordPress: Custom default avatar on localhost?

梦想与她 提交于 2019-12-11 00:52:23
问题 I'm trying to add a custom default avatar to WordPress in functions.php, but the image is not displaying in Settings/Discussion or elsewhere on the site. The code works because a new radio field is added with the custom field name, but the image won't display. Is the avatar not displaying because I'm using Localhost? I don't have enough reps to comment on similar questions. here's the code: add_filter( 'avatar_defaults' , 'wps_new_avatar' ); function wps_new_avatar( $avatar_defaults ){ $new

upload picture through external website to gravatar profile

梦想与她 提交于 2019-12-09 07:08:46
问题 I was wondering if it is possible to create an upload function to upload picture through my own site to the gravatar site? 回答1: Yes, this is possible. See http://en.gravatar.com/site/implement/xmlrpc/ , specifically the grav.saveData or grav.SaveUrl calls. 回答2: 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

How to get author's Gravatar url?

醉酒当歌 提交于 2019-12-08 12:30:47
问题 I want the author's pic to appear in some part of the single.php page, and I used this code I found somewhere on the wordpress stack exchange to get the URL of the author Gravatar in order to use the pic as a background image of a DIV : This code in functions.php : if ( function_exists('register_sidebar') ) register_sidebar(); add_theme_support( 'post-thumbnails' ); add_image_size( 'related', 300 , 200 , array(bottom, right) ); function get_avatar_url($get_avatar){ preg_match("/src='(.*?)'/i"

How do you have a default Gravatar that is external and that actually resizes properly?

本秂侑毒 提交于 2019-12-06 06:42:17
问题 To implement Gravatar in my Rails3 application, I'm using the gravatar_image_tag gem in a helper, but I'm having issues when mixing 2 config options: If the user doesn't have a gravatar attached to his email a default image is rendered; but I want it to reference an external file (e.g., http://www.iconfinder.com/ajax/download/png/?id=43350&s=128 instead of :identicon or others) I also want the image to be resized on the fly to, let's say 50px. Independently, both options work as expected, but

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

走远了吗. 提交于 2019-12-05 02:40:18
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 You can find a sample script with PHP code on their implementation site: http://en.gravatar.com/site/implement/php Use this: $userMail = whatever_to_get_the_email; $imageWidth = '150'; //The image size $imgUrl =

Adding class to gravatar img in wordpress

試著忘記壹切 提交于 2019-12-04 11:18:51
问题 I've been trying to use get_avatar to display the author's gravatar under each post in wordpress template with applied class but I couldn`t find a way to add class="pic-2" to gravatar image code or even changing gravatar heigth and width to 100px and 77px respectively <?php echo get_avatar( get_the_author_meta('ID'), 32 ); ?> Any help guys ?? 回答1: I think the best way to handle this would be to use a filter, rather than using jQuery as George suggests. You would simply add this to your theme

How do you have a default Gravatar that is external and that actually resizes properly?

喜你入骨 提交于 2019-12-04 10:10:34
To implement Gravatar in my Rails3 application, I'm using the gravatar_image_tag gem in a helper, but I'm having issues when mixing 2 config options: If the user doesn't have a gravatar attached to his email a default image is rendered; but I want it to reference an external file (e.g., http://www.iconfinder.com/ajax/download/png/?id=43350&s=128 instead of :identicon or others) I also want the image to be resized on the fly to, let's say 50px. Independently, both options work as expected, but when I put them together: def gravatar_for(user, options = { :default => 'http://www.iconfinder.com

Stack Overflow Userpic generation (Identicons)

拈花ヽ惹草 提交于 2019-12-04 01:01:28
问题 i an creating a website in C# ASP.NEt and want to use a feature similar to Stack Overflow, Every time a new user registers on the StackOverflow.com he is assigned a default user picture until he has a gravatar, Now every picture is different from the previous one, so it is sure it is generated, i want to know how can this be done in C#. Note: (I don't think it is a meta question so please don't move it there) 回答1: It's called Identicions. They are images generated by some kind of hash,