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.
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.
The first question is do you have an avatar system on your site currently?
I hope its installed correctly, but yes, I am using:
http://suleiman.hadithuna.com/wpmu-avatar-pack-release/
Bump :)
If its possible with the WPMU Gravatar plugin, I have no issue switching.
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.'" />';
}
?>never mind, I got it to work out!
curious. can you post your findings?
Hey bwinn, I will post a new topic on how to do it soon!
can't wait to see :)