User Photo avatar displayed on forum home?
Hi, I’m trying to display the avatar of the person who started the forum topic on the mainpage, in the place of the last posters name, in the latest discussions area.
I’ve tried using the way it displays in profiles
<?php if ( $avatar = bb_get_avatar( $member->ID ) ) : ?>
<div id=”useravatar”><?php echo $avatar; ?></div>
<?php unset($avatar); endif; ?>
It does not work. I’ve tried pulling it like in a post
<?php post_author_avatar_link(); ?>
Nothing. One more
No joy there either. I tried using this function
<img src=”<?php echo USERPHOTO_URL . $profileuser->userphoto_image_file . “?” . rand() ?>” alt=”<?php _e(“Full size image”, ‘user-photo’); ?>” />
and it almost does it…
but as you can see it does not grab the users avatar, (1.jpg) although it’s pointing to the right place.
has anyone ever gotten avatars showing on the mainpage with the user photo plugin? I am aware other plugins exist for avatars but they do not suit my needs, apart from this one hickup, user photo is the best for wordpress/bbpress shared avatars. The guy who made it has long since left
You must be logged in to reply to this topic.