Thanks. BuddyPress-Integration has been on our radar but I haven’t looked at the specifics yet.
From a quick look at the code I think it should actually work with buddypress’ uploaded avatars as well; there is this bit of code in “bp-core/bp-core-avatars.php” that should override default avatars if you’re using the buddypress versions…
add_filter( 'get_avatar', 'bp_core_get_avatar_filter', 10, 4 );
(If someone has a test install of buddypress for me to play with that would help ;-))
Okay, step 1 done: BuddyPress does not like get_avatar calls with the “email address” passed to it, so I’ve changed my code to use the user_id instead… (Changeset 118704)
Big thanks bforchhammer plugin now displays the avatars.
But I’ve the problem with linking avatars to author page option. In this option plugin creates links to Authors of main blog – http://domain.test/blog/author/admin/, the link structure should be – http://domain.test/members/admin/ –
/blog/ and /members/ are BuddyPress Slugs – here is /developers/ slug example
I think the best solution would be to add one more option – “BP member page”
Big thanks for changes and link. Link to BP members page works perfect.
Right now for my purposes, there are pretty enough options. It can be also used by other users to display users of their blog.
I really like it!
Thanks once more.
Thanks for testing and feedback. I think I’m going to release these changes as a new version later today…
Now in trunk: sorting by recent activity (See changes 120577)
Did you ever get this plugin displaying a BuddyPress user’s uploded avatar?
I can get this plugin showing the author of the post’s Gravatar image but it doesn’t seem to show their custom BuddyPress avatar?
The code I am using is the following:
<?php echo get_avatar(get_the_author_email()); ?>
Cheers in advance for any help!
get_avatarfunction does not work with the email address… you have to use the user-id or username (I think) instead:
<?php echo get_avatar(the_author_meta('ID')); ?>
Thanks for the quick reply 🙂
I have actually sorted this myself after having another good look around the BuddyPress core files and the following placed withing the post loop does exactly what I need:
<?php bp_post_author_avatar() ?>
I can’t seem to get the avatar size to change. It remains small, no matter what size I set it to. I’m using the widget with Buddypress.
- The topic ‘[Plugin: Author Avatars List] BuddyPress integration’ is closed to new replies.