Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: Avatar Upload

For those of you who have your wordpress and bbpress installs together and would like have the avatars display in the wordpress side as well…

Here is some code you can add… This is what I use in the sidebar over at yourkahil.com

<?php global $user_identity;

get_currentuserinfo();

if ($user_identity == ”) {

echo(‘Welcome Guest’);

} else {

echo(‘<img src=”/forum/avatars/’ . strtolower($user_identity) . ‘” alt=”avatar” />’);

}

?>

This will work if you would like to display the avatar outside of the loop in bbpress as well. All you have to do is change the image source line to reflect where you have your avatars stored…

Hope that helps some people!!!

Skip to toolbar