@dan_the_snowman
Not my plugin but I am assuming your talking about what shows up in the members-loop.php In the members directory. You can edit the members-loop.php by removing:
<?php if ( bp_get_member_latest_update() ) : ?>
<span class="update"> <?php bp_member_latest_update(); ?></span>
<?php endif; ?>
And by removing:
<?php if ( bp_is_active( 'activity' ) ) : ?>
<div id="latest-update">
<?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
</div>
<?php endif; ?>
In the members-header.php
Cheers!
this is no solution because my theme is a child-theme and so I can’t use two of them
this plugin doesn’t restrict activity stream all over the profile
Hi @minika, @bp-help, @dan_the_snowman
Thanks for help @bp-help.
I was add a filter to fix the problem, @monika please add this code provisionally at the end of
plugins\buddypress-activity-privacy\includes\bp-activity-privacy-filters.php
add_filter( ‘bp_get_activity_latest_update’, ‘bp_activity_privacy_latest_update’, 10, 1);
function bp_activity_privacy_latest_update( $latest_update ){
$user_id = bp_displayed_user_id();
if ( bp_is_user_inactive( $user_id ) )
return $latest_update;
if ( !$update = bp_get_user_meta( $user_id, ‘bp_latest_update’, true ) )
return $latest_update;
$activity_id = $update[‘id’];
$activity = bp_activity_get_specific( array( ‘activity_ids’ => $activity_id ) );
// single out the activity
$activity_single = $activity[“activities”][0];
$has_activities = false;
$activities = new stdClass();
$activities->activities = array();
$activities->activities[] = $activity_single;
bp_visibility_activity_filter($has_activities, $activities);
if ( empty( $activities->activities ) )
$latest_update = null;
return $latest_update;
}
Thanks for feedback.
Regards,
Hi there, the issue is still there.. why didn’t you updated the plugin with this new fix instead of telling people to manually add it? O_o
@meg@info, I just found out that the code you gave here is already in the plugin.
Anyway, the activity is still showing as @dan_the_snowman explained.