Articles in this series

26 responses to “Doing more with Gravatars: Part 1”

  1. David@VineSites

    I am happy to see Gravatars becoming common. They usually add a lot to posts in my opinion, a greater sense of style and community. Looking forward to sprucing my up. Thanks.

  2. K

    I thought at first those were WAVATARS plugin, the avatar icons looks similar.

  3. Mandy

    I love Gravatars. Thanks for the info!

  4. J Mehmett

    Thanx Justin, your idea thought many more techniques related to how to modify comments and gravatars.

    I thought there is no possible way to create a special avatar for the trackbacks and pingbacks… Loll…

  5. Daddy

    Please write me and tell me more about home gravatars, Daddy

  6. Catsandbeer.com

    Justin, do you know if there’s a different function to query gravatar.com to see if the email address has an associated gravatar? I’d probably end up checking that boolean and then just using a single 80×80 image for all non-gravatar people – to me this would improve page response – for instance, I have one article that has 400+ comments and loading/generating all those avatars could take a while.

    Also, what happens if gravatar.com is temporarily down? Does the page just hang?

    One way that I’m modifying your code is to link up every gravatar – if the commenter didn’t submit a url, then I make its url gravatar.com – I figure if this would be the best practice as it would provide each curious clicker the chance to get their own gravatar which would in time lead to more commenters having personalized gravatars

  7. Hans Hilmi

    Gravatar,wavatar..
    It’s really nice For Comments Field…

  8. Doing more with gravatars: Part 2: Using gravatars for an author's bio

    [...] learned how to spruce up our comments sections a bit with the first part of this series. Now, we’ll cover an about the author section for [...]

  9. Jonah Dempcy

    Good post! I made a gravatar after reading this. Thanks!

  10. HornyMelon

    Right over my head. My comments section looks nothing like what you have written above, I used a single line of code I found in a forum post to turn them on but have no clue what I need to change to get the above working.

    Here’s the code……

    <?php
    	if(function_exists('get_avatar')) :
    		echo '';
    		echo get_avatar( get_comment_author_email(), '80', 'wavatar' );
    		echo '';
    	elseif(function_exists('gravatar')) :
    		echo '';
    	endif; ?>
    
    		<a class="time" href="#comment-" title="">
    
    		<?php edit_comment_link(''.__('[Edit]','options').'',' ','');
    		if ($comment->comment_approved == '0') :
    			echo ''; _e('Your comment is awaiting moderation.','options'); echo '';
    			endif; ?>
    		
  11. HornyMelon

    doh! What Just happened?

  12. Doing more with gravatars: Authors template page

    [...] learned how to add an author bio to single posts and revamp our comments with gravatars. Now, it’s time to take this one step [...]

  13. Opeyemi Awoyemi

    Fine job there. I want to learn how to design wordpress themes. Can I get a complete tutorial out there.

  14. roger  

    hi justing

    trying to add gravatars to my index page http://redseasound.com/demo in a ’simple’ ;) way but cant get the url to work <a href=”” />

    any ideas?

  15. roger  

    damn always i forget about code last time it was backticks and i put forward ticks now what have i done wrong?

  16. Gravatars: the best way to advertise and brand your blog for FREE | The Big Blogger

    [...] activation of this feature can be obtained hardcoding it into your comment.php (see here how to) or in a lazier way installing this [...]

  17. New Look – Statement | Neowster

    [...] Doing more with Gravatars: Part 1 [...]

  18. Check out how to add your avatar to your comments on this and other blogs | How to Be a Woman

    [...] Doing more with Gravatars: Part 1 [...]

  19. Check out how to add your avatar to your comments on this and other blogs | Retro Heather

    [...] Doing more with Gravatars: Part 1 [...]

  20. Kate Mag

    Justin, is that compatible with WordPress 2.7 comments?

  21. Mike’s Corner « Bluegrass Blog

    [...] learned how to add an author bio to single posts and revamp our comments with gravatars. Now, it’s time to take this one step [...]

Leave a Reply

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.

WordPress-o-Sphere

  • WordPress 2.8 – "Baker"
    WordPress 2.8 adds hundreds of bug fixes, adds cool functions for themes, boasts a new widget API, and makes custom taxonomies easy for end users.
  • WeRockWP
    WeRockWP recognizes and showcases the individuals who contribute much to the WordPress community. These individuals are called WordPress Rockstars.
  • wpazo
    The all-signal, no-noise, source for the best WordPress stuff.
  • BuddyPress 1.0 has arrived
    The long-awaited BuddyPress (a set of plugins that turns a WordPress MU install into a social network) has been officially released.
  • BuddyPress for WordPress (not MU) coming
    It looks like BuddyPress will also be released for normal WordPress installs (not just WPMU).