October 26th, 2007 at 10:11 pm by David Potter

Easier Gravatars

Dougal Campbell provided a much nicer implementation for adding gravatars to your comments called Easy Gravatars.  This solution doesn’t even require you to modify your theme files.  Very cool!

I made a few improvements to his solution:

  • Improved admin page layout, including more verbose descriptions of each of the options.
  • Added Reset button to the admin page to delete all the options from the database.
  • Added ability to display a border around the gravatar image.
  • Display image as a link to the comment author’s web site (thanks to Elaine Vigneault for the idea).
Updates

A new update is now available based on Dougal’s version 1.2 plugin.

Resources

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati

7 Comments

  1. Elaine Vigneault · October 27th, 2007 at 2:12 pm #

    Aw, you’re welcome :)
    Good mods you made there. Glad to see it.
    And now I will test your gravatars plugin here :)

  2. papajoneh · November 5th, 2007 at 12:40 pm #

    I’m just following Elaine there.. testing this gravatar thing ;)
    I have not installed mine.. but after this I guess, I have too :D

  3. couchmouse · November 7th, 2007 at 4:12 pm #

    Thanks for the plugin. I like the upgraded features you added. Works great on WP2.3.1. I am using it with the Highlight author comments plugin.

  4. SmockLady · November 10th, 2007 at 7:13 am #

    I will have a look at this later today. I don’t understand what you mean when you say you added the ability to add a border around the gravatar. I already had that up myself. I just added the border: css code to the code line. I haven’t looked at your version yet, so maybe it’s a wording thing and those who need a bit more hand holding can have it with yours. I know how to do a lot of things in my blog, but anything that makes it faster and easier is great in my book. And I was missing the option of my gravatars linking to the comment author’s site. I had that option with my previous use and I’m glad to see it back with your addition.

    HT to Elaine for linking over here in her blog. ;)

  5. David Potter · November 10th, 2007 at 9:03 pm #

    The original plugin didn’t add a border around the gravatar. This plugin allows you to specify the width of a border which gets added as an attribute to the img tag.
  6. Michael · December 19th, 2007 at 8:27 pm #

    I’m having trouble with this - if the poster leaves a short, one line commnet, I’m having to manually edit the comment and add to keep the gravatar from “over-flowing” the post box, and then messing up everything below it. Any ideas?

  7. David Potter · December 20th, 2007 at 11:00 am #

    I’ve had the same problem. One thing you can try is to specify a clear:both style, although that didn’t completely solve the problem for me. Another thing to look at is Lorelle’s latest release of Easy Gravatars and then to specify that the gravatar should be displayed in the content. I’ve tested it out but he didn’t incorporate the features I added so I still have some work to do.

Leave a Comment




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>