-
Henry Wright replied to the topic custom members loop in the forum Creating & Extending 11 years, 9 months ago
@mykrabuilding could it be that the two members you’re displaying haven’t made an activity update yet? Just a thought! If that is the case then it’ll just need a simple check introduced to see if the member has made an activity update – if they haven’t then display nothing, if they have then display the date.
-
Henry Wright replied to the topic custom members loop in the forum Creating & Extending 11 years, 10 months ago
I’ve now had a chance to do this at my PC. Just tested this so it should work:
$update = get_usermeta( bp_get_member_user_id(), 'bp_latest_update' );[Read more]
$activity = bp_activity_get_specific( array( 'activity_ids' => $update['id'] ) );
$activity = $activity['activities'][0];
echo… -
Henry Wright replied to the topic custom members loop in the forum Creating & Extending 11 years, 10 months ago
To my knowledge, the time of the latest update isn’t recorded. The latest update info is stored in user meta. To get it you’d do something like:
$update = get_usermeta( $user_id, 'bp_latest_update' );You then have the option to get either the activity ID or the content (no timestamp I’m afraid).
echo $update['id'];
echo…[Read more]
@mykrabuilding
Not recently active