I'll just come right out and say it.
I want to modify comments.php to display an avatar next to each users comments. How can I get each commentors username (not display name)?
Background info... I have wpmu and bbpress databases integrated, but not functions. I'm using the bbpress Avatar Upload plugin to display avatars in my forums. I'd like to use the same avatars in my wpmu comments as I do in my forums. Here is some code that will display the commenter's avatar if I can get the commenter's username.
global $user_identity;
get_currentuserinfo();
echo('<img src="/forum/avatars/' .
FUNCTION_TO_GET_COMMENTERS_USERNAME() .
'.jpg" alt="avatar" />');
I just need to replace FUNCTION_TO_GET_COMMENTERS_USERNAME() with a real function that will return the commentors username.
Any ideas?