Articles in this series

31 Responses

  1. David@VineSites
    David@VineSites April 30, 2008 at 7:45 pm | | Reply

    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
    K May 1, 2008 at 6:07 am | | Reply

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

  3. Mandy
    Mandy May 1, 2008 at 3:04 pm | | Reply

    I love Gravatars. Thanks for the info!

  4. J Mehmett
    J Mehmett May 2, 2008 at 10:36 am | | Reply

    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
    Daddy May 3, 2008 at 5:56 am | | Reply

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

  6. Catsandbeer.com
    Catsandbeer.com May 3, 2008 at 5:37 pm | | Reply

    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
    Hans Hilmi May 4, 2008 at 5:28 am | | Reply

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

  8. Jonah Dempcy
    Jonah Dempcy May 8, 2008 at 8:11 pm | | Reply

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

  9. HornyMelon
    HornyMelon May 17, 2008 at 2:48 am | | Reply

    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; ?>
    		
  10. HornyMelon
    HornyMelon May 17, 2008 at 2:50 am | | Reply

    doh! What Just happened?

  11. Opeyemi Awoyemi
    Opeyemi Awoyemi June 14, 2008 at 8:43 am | | Reply

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

  12. roger  
    roger   July 11, 2008 at 5:14 am | | Reply

    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?

  13. roger  
    roger   July 11, 2008 at 5:15 am | | Reply

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

  14. New Look – Statement | Neowster September 9, 2008 at 8:47 am |
  15. Kate Mag
    Kate Mag January 6, 2009 at 2:08 am | | Reply

    Justin, is that compatible with WordPress 2.7 comments?

  16. Mike’s Corner « Bluegrass Blog May 13, 2009 at 12:26 am |
  17. subcorpus
    subcorpus August 16, 2009 at 6:24 pm | | Reply

    lets see if i can pull this off on my blog …
    very informative article …
    thanks for sharing …

  18. Daniel Rome b&b
    Daniel Rome b&b September 23, 2009 at 2:50 pm | | Reply

    Gravatars add a bit of color to a non-sofisticate blog.

  19. Jeux de Mario Gratuit
    Jeux de Mario Gratuit November 12, 2009 at 10:44 am | | Reply

    Thanks for this guide, let’s read part 2 now ;)

  20. andri
    andri December 9, 2009 at 12:19 pm | | Reply

    how to display gravatar for author inside every post?

  21. renggap
    renggap August 24, 2010 at 10:02 am | | Reply

    hi Justin,
    is there any methods to use my own avatar gallery that displayed in comments? just like the monster face picture.

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.

Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.