WordPress.org

Ready to get started?Download WordPress

Forums

Gravatar doesn't display (4 posts)

  1. richards1052
    Member
    Posted 7 years ago #

    I'm using the Gravatar2 plugin. I have a gravatar registered at Gravatar.com. Other gravatars are displaying properly at my blog. But mine won't display. Here's an example of what I see. Would anyone have any ideas why this might be happening?

  2. beardedgit
    Member
    Posted 6 years ago #

    Similar problem here:

    When I look at my WP2.2.2 blog with Firefox, I can see my gravatar and those of all other commenters who have one. No problems there.

    When I look via IE, I can see the gravatars of other commenters, but mine behaves oddly: if I submit a comment while logged out, my gravatar is recorded against that comment just as it should. If I submit a comment while logged in, no gravatar is recorded against that comment.

    Weird, eh?

    This happens whichever Gravatar-enabling plugin I use, so I reckon the problem is login-related, not plugin-related.

    For an example, see http://beardedgit.com/?p=218, be warned that the "F"-word has been used in some of the comments there.

    All suggestions as to how to fix this would be appreciated. Thanks for looking.

  3. beardedgit
    Member
    Posted 6 years ago #

    Update:

    I've upgraded WP from 2.2.2 to 2.3.1 and also upgraded from IE6 to IE7, and all gravatars are now visible. They still display different to how they do in Firefox, but I can live with it. Cheers for looking.

  4. dkaye315
    Member
    Posted 6 years ago #

    there's no need to install a plugin to do this ... instead - follow Matt's advice, and hardcode it to the theme.

    insert the following code:

    "Just put it in your comments loop, I put it right before the comment_text() call."

    <?php
    if ( !empty( $comment->comment_author_email ) ) {
    	$md5 = md5( $comment->comment_author_email );
    	$default = urlencode( 'http://use.perl.org/images/pix.gif' );
    	echo "<img style='float: right; margin-left: 10px;' src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&amp;size=60&amp;default=$default' alt='' />";
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic