Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity on the Members loop

  • Avatar of turleybw
    turleybw
    Participant

    @turleybw

    I’m working on a custom members page, and I’m trying to display thumbnails of each member’s recent activity next to their basic profile information, but it’s not working as expected.
    Hopefully you can give me some insight.

    Here’s the code I’m working with:

    <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&max=3′.’&user_id=’.bp_member_user_id()) ) : ?>
    <?php while ( bp_activities() ) : bp_the_activity(); ?>

    <?php locate_template( array( ‘activity/entry.php’ ), true, false ); ?>
    <?php endwhile; ?>
    <?php endif; ?>

    http://localcreatives.org/members

    Buddypress 1.7.2

    As you can see I’m filtering activity so it only displays three items for each user, and I’m also trying to filter the activity by user id which is where the problem is. If I input a specific user id number it filters all the activity on the page to that user id. So, I’m attempting to call each user’s id with the function bp_member_user_id(). Please let me know what you’d change to correctly display each member’s recent activity.

Viewing 1 replies (of 1 total)
  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @turleybw
    You may want to update your topic title because the code you are showing is from activity-loop.php not members-loop.php

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.