The MU forums have moved to WordPress.org

Two gravatars displayed in comments area (3 posts)

  1. hohoo
    Member
    Posted 16 years ago #

    I do not know why I have two gravatars displayed at the blog site of my wpmu system.

    I turned off gravatars plugins, but they are all still there. And I turned off the blog's comments gravatar and do not allow gravatar to display, still does not work.

    So I think it is the problem of the skin, and I checked skin's comment's file. There seems nothing wrong. Here is the code.

    <div class="gravatar">
    <?php
    $url;
    $title;

    if( !isset( $comment->comment_author_url ) && $comment->comment_author_url == NULL ){
    //echo "URL is not set...";
    $url = "http://site.gravatar.com/";
    $title = "Sign up for a Gravatar at: " . $url;

    }else{
    $url = $comment->comment_author_url;
    $title = "Visit " . $url;
    }
    ?>
    <?php
    $email = get_comment_author_email();
    $default = get_bloginfo('template_directory') . "/images/default_gravatar.gif";
    $size = 64;

    $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=" . md5($email). "&default=" . urlencode($default) . "&size=" . $size;
    ?>
    " rel="comment author" title="<?php echo $title; ?>"><img src="<?php echo $grav_url; ?>" alt="<?php comment_author(); ?> - Gravatar" class="gravatar" />
    </div>

    <p class="top"><?php comment_author_link() ?><span>  |  <?php comment_date('F jS, Y') ?> at <?php comment_time() ?> " title="">#<?php edit_comment_link('edit','  ',''); ?></span></p>

    <div class="body">
    <?php if ($comment->comment_approved == '0') : ?>
    Your comment is awaiting moderation.
    <?php endif; ?>
    <?php
    if(the_author('', false) == get_comment_author())
    echo "<div class='body-author'>";
    else
    echo "<div class='body'>";
    comment_text();
    echo "</div>";
    ?>

    </div>

    You can check the site at

    http://my.textjourney.com/isentive/2008/10/02/%E5%BD%BC%E5%B2%B8%E8%8A%B1%E5%BC%80%E5%AE%A3%E8%A8%80/#comment-2

    And I seriously doubt it is the problem of the plugin, since another blog at my site has the same problem

    http://my.textjourney.com/ahwei/2008/09/29/xiaoerjing-%E5%B0%8F%E5%85%92%E7%B6%93-%D8%B4%D9%90%D9%8A%D9%8E%D9%88%D9%92-%D8%B9%D9%8E%D8%B1-%D8%AF%D9%8D/#comments

    but mine seems OK
    http://my.textjourney.com/eric/2008/09/22/amazing-jump/#comments

    very weird, your kind help will be highly appreciated!

  2. andrea_r
    Moderator
    Posted 16 years ago #

    I see some gravatar code there just fine. That's what's showing the gravatar. Remove it and it'll be gone.

  3. hohoo
    Member
    Posted 16 years ago #

    Thank you! The problem has been fixed. This is due to duplicate plugin which has been turned on in mu-plugin. Thank you andrea_r. I always read your posts.

About this Topic