The MU forums have moved to WordPress.org

Wordpress.com avatar style (9 posts)

  1. nouman6
    Member
    Posted 16 years ago #

    How can I display the user's avatar on the homepage like wordpress.com?

    i've been searching, but haven't found any solid answers.

    Thanks.

  2. tdjcbe
    Member
    Posted 16 years ago #

    The first question is do you have an avatar system on your site currently?

  3. nouman6
    Member
    Posted 16 years ago #

    I hope its installed correctly, but yes, I am using:
    http://suleiman.hadithuna.com/wpmu-avatar-pack-release/

  4. nouman6
    Member
    Posted 16 years ago #

    Bump :)

    If its possible with the WPMU Gravatar plugin, I have no issue switching.

  5. nouman6
    Member
    Posted 16 years ago #

    I've got a solution! Gathered from the posts of two different users, I was able to grab the avatar of a blog post using the homepage, the only problem is that I don't know how to implement it with a WPMU recent posts plugin. If anyone can please do so, that would be AWESOME!

    <?php
    $user_id = $wpdb->get_var("SELECT user_id FROM wp_usermeta WHERE (meta_key = 'source_domain' AND meta_value = '$domain')");
    $user_info = get_userdata($user_id);
    $wp_avatar = '/longpath/html/wp-content/avatars/' .$user_id. '.jpg';
    $wp_avatarURL = '/wp-content/avatars/' .$user_id. '.jpg';
    
    if (file_exists($wp_avatar)) {
    echo '<img class="avatar" src="'. $wp_avatarURL.'" />';
    }
    ?>
  6. nouman6
    Member
    Posted 16 years ago #

    never mind, I got it to work out!

  7. bwinn
    Member
    Posted 16 years ago #

    curious. can you post your findings?

  8. nouman6
    Member
    Posted 16 years ago #

    Hey bwinn, I will post a new topic on how to do it soon!

  9. indojepang
    Member
    Posted 16 years ago #

    can't wait to see :)

About this Topic

  • Started 16 years ago by nouman6
  • Latest reply from indojepang