Since so many people seemed to be interested, I went ahead and coded up my new Gravatars plugin: Easy Gravatars. It’s designed to be simple to use — just upload and activate. If you want it to be a little harder, you can visit the plugin’s options page to set the size and rating for the gravatars, and even set the location of a default image, and tweak the CSS a little bit.
Download: easygravatars.zip
I’m going to put it in the WordPress Plugin Repository when I get a chance. Once that’s done, I’ll update this post with the new location.
Update, 2007-11-16: The plugin is now in the repository, and you should now be able to see that version 1.1 is available: Easy Gravatars Plugin
Easy Gravatars PluginRelated posts:
- Easy Gravatars with Google Analytics Plugin
" Several people have reported problems using my Easy Gravatars plugin together with Joost de Valk’s Google Analytics Plugin for WordPress. I spent some time..." - Easy Gravatars version 1.1
" My Easy Gravatars plugin is now in the WordPress Plugin Directory, and I’ve released version 1.1. Changes: Gravatar images now link to comment author’s..." - Easy Gravatars 1.2
" Earlier today, I released Easy Gravatars version 1.2. The only change (besides confirming that works in WordPress 2.5, currently in beta, due out next..." - Gravatars
" Even before the recent announcement about Gravatar joining Automattic, I had been wanting to turn on comment avatars here. I nabbed Matt’s code, fooled..." - WordPress 2.5 Beta
"I just upgraded this site to WordPress 2.5 Beta. So far, everything appears to be working just fine. And since I know lots of people..."














96 Comments
I am having difficulty seeing gravatars in IE but they appear fine in FireFox. Also, this plugin seems to overlap everything in my commenting section. I’d rather have a line of PHP code to place into my comments.php file to really embed the avatar in the commenting area of the site.
thanks
Beauty work ^^
Thanks for this plugin. I like the idea of it, and have installed it on my site, but it isn’t showing my gravatar in my comments — and won’t show anyone else’s as yet because I’m only just setting a blog up. So I thought I’d leave a comment here, to say thanks, and to see if my gravatar showed up here. Cheers!
Mmm, only the default image here too. Must be a problem with the gravatar end then. Odd. I wonder if it might be because it’s a newly set up gravatar.
Do I need http://wordpress.org/extend/plugins/wp-cache/ for it to work?
Frozen: No, you do not need anything else for it to work.
Thank you. Too Cool!
For some reason my blog is putting up little squares/rectangles but they are empty of gravatar images. I don’t know what is causing the problem. Any ideas?
just trying it out
Get the latest version of the plugin from the Plugin Repository.
Hi Doug, this is a somewhat banal question, but how do I get the gravatar into the little quote boxes on my site? That’s the only thing that’s keeping this from being utter perfection, and it’s due to my suckage at coding. Thanks for a great plugin.
chuck: Try setting your span style in the Easy Gravatar options to this (note the new ‘margin-top’ bit at the end):
float: right; margin-left: 10px; display: block; width: 40px; margin-top: -0.5em;Very good one! Thank You!
testing
I tried editing the easygravatars.php file (in the WP plug-in editor), as I thought you meant in your comment #25. No success for any values of margin-top, negative or positive. The image seemed glued at its upper left corner.
However, when I made the change in the EasyGravatar *Options* screen, as you said in comment #62, it worked! Can you tell me why? Also, is there a reason you specified vertical displacement in ems rather than px?
Thanks for your work and especially for your support by answering all these pleas for help. You’re a champ!
Mico: Changing that value in the plugin code won’t matter, if the plugin is already installed and activated. At that point, the option is already saved in the database, and it will always look at that. So, when you change it via the Options page, you are setting the value that it really wants to use, see?
As far as why I used
eminstead ofpx, it’s because there’s no way for me to know whatpxsize you have chosen on your site. Theemmeasure is always relative to whatever your preferred text size is, so a value likemargin-top: -1em;should always (well, in most cases) move the image up by one text line. But if you want to set it in pixels instead of ems, go ahead, that’s why the options are there — so you can set it the way you want it.Wonderful, Thanks
Something happened to the plugin, I think today: when a Gravatar is not found, the default image is not read, a blank square from Gravatar is shown instead. Any idea why?
hi
brilliant plugin, this is the only gravatar plugin that has actually worked for me. I have noticed a few people who have left comments are moaning that it does not allow them to do certain things like styling etc. I have made some ammendments to the plugin to allow this. I won’t be offering it as a download but for those who are interested you can email me and I will help you out (all of this with the plugin authors permission of course.)
here are a few things I have done:
I took out the image tags to better control styling within the templates
i added a blank target so author urls will open in a new page (very handy for myself)
i added a few more option to the drop down box on the admin page so you can link the image to other comment_author tags, this helps with styling and gives more control.
I have yet to upload to my live site (will be shortly) so if anyone wants more info just drop me a line.
Dougal:
I hope these amendments are ok, and if you would like to drop me line please feel free.
Mark…
Awesome plugin! Going to be installing it very very soon. Thanks!
I been waiting for this plugin.. thank you so much..
Doesn’t seem to work
Thanks for the great plugin! Is there an easy way to use the Gravatar’s Identicons w/ this plugin? Thanks!
Shane: yes — just type ‘identicon’, ‘monsterid’, or ‘wavatar’ as the Default image url in the Easy Gravatars settings. I’ve been meaning to post about this, but just haven’t had time yet.
how do you make the gravatar icon not link to the person’s site?
Thank you for this nice plugin
Hi there–
I’m 127% sure this is the stupidest question you’ll receive today, but…
How can I force each comment to appear on a new line, rather than stacking up horizontally when an earlier comment isn’t long enough to scroll past the gravatar image? (In the screenshot at http://threetwelve.net/images/misc/egscreenshot.jpg, for instance, the text “David posted the following…” should line up with “Amie posted the following…” above it, rather than appearing to the right of Amie’s gravatar.)
Thanks for whatever wisdom you can provide!
: )
David
Just testing
I got it–I had two plugins competing for comment style. :-p
Ye i whas wondering wich plugin i need for this.Becuas it is a great thing.
Going to download it now and will try it out.\/\/
test
?? ??… ??? ??? ? ?????????: ? ??? ?????? ????????? ? ??????.:)
This is a cool plugin, thanks Doug.
Thanks for this plugin!!!
thanks
why, this plugins no active in blog ..
it not displayed pict
i still dont know how to use it — after i have install still can’t appear —
will try again —
Nice plugin!
Thanks for giving it free..
Hi there
Great plug mate. I am just having one problem with it and that is “i can’t remove the border of avatar”. Please tell me how can i do that
I can not remove the border of avatar image how to do that?
Really good plug in.But i wonder something about this plug in.If someone created easy gravatar from another site and commented in my site does gravatar seems?Or must he create one gravatar from my blog?
I am not getting random wavatars, just the same one no matter who is the author
I just found your site, I need to get a gravatar – thanks for the plugin, off to d/l now
I really like, thanks!
thanks a lot for the plugin
But it doesn’t seem to be pulling my gravatar. At first it wasn’t doing so because I had actually created my blog and my gravatar under different emails. I’ve since added a gravatar to the admin email address and it is still showing the default gravatar. I used that admin email address here and it is showing the correct one.
45 Trackbacks