• Hi there and thanks for the plugin, BP needs more privacy features.

    I have tested the plugin and found out it does conflict with BP Media as another user has pointed out in another thread.

    But also no matter the privacy settings, the activity will show up in the latest-update on your account, it does not show up on my Activity Wall and when I press the “View” link (as another user) it will take me to 404 site.

    But the activity is still visable to everyone who opens your account front page.

    https://www.ads-software.com/extend/plugins/buddypress-activity-privacy/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @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

    Plugin Author meg@info

    (@megainfo)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Latest Update bug’ is closed to new replies.