Support » Requests and Feedback » [Plugin: Author Avatars List] BuddyPress integration

  • Really nice plugin! Maybe you think about adding integration with Buddypress avatars? Now it show only gravatars.
    I think combination with BP and this plugin options would be awesome.
    Matew

Viewing 12 replies - 1 through 12 (of 12 total)
  • Ben

    (@bforchhammer)

    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 ;-))

    Ben

    (@bforchhammer)

    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”

    Ben

    (@bforchhammer)

    Here you go: Changeset 118924

    I just stumbled over the buddypress members loop… doesn’t have a widget (yet) but might be more suited in some use cases than my plugin.

    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.

    Ben

    (@bforchhammer)

    Thanks for testing and feedback. I think I’m going to release these changes as a new version later today…

    Ben

    (@bforchhammer)

    Now in trunk: sorting by recent activity (See changes 120577)

    Hi

    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!

    Ben

    (@bforchhammer)

    Buddypress get_avatar function 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.

    Ben

    (@bforchhammer)

    Hm, could you provide a link to an example or an excerpt of the source code that gets created by the plugin?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Author Avatars List] BuddyPress integration’ is closed to new replies.