BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall buddyboss wall activity loop filter not working

Viewing 12 posts - 1 through 12 (of 12 total)
  • Question

    #34487
    @kzpower

    I am trying remove some activity types. So I change the function in activity-loop.php

    <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&action=activity_update’ ) ) : ?>
    So, it only shows the update activity of the user.It works without buddyboss wall.
    However, after I activate the buddyboss wall, it is not working anymore. I try a lot of ways, no luck. I only have two choices now, use buddyboss wall or not, I really want to use buddyboss wall, but if buddyboss wall gave me a problem like that, I have to deactivate it. So, please someone tell me what other way that I can do in order to filter the activity stream, which I don’t want the user-update message, change profile message, new user reregistration.
    This is my last luck here! Thank you for your time.

    Answers

    #34502

    Alyssa
    Participant
    @alyssa-buddyboss

    @kzpower Welcome to the BuddyBoss community! Are you trying to edit the global activity stream or the profile activity stream?

    #34506
    @kzpower

    Thanks for reply, I am trying to edit the profile activity stream. It filters out in the Side-Wide Activity and following(I use follower), but only cannot filter out in a user’s profile activity stream (Wall and News Feed) when replace with <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&action=activity_update’ ) ) : ?> on the activity-loop.php.
    Could you tell me how can I solve this problem? I was thinking use remove function to remove those functions, can I do that?

    #34514

    Alyssa
    Participant
    @alyssa-buddyboss

    @kzpower I’m a bit confused at your request. BuddyPress does this natively, the wall plugin is designed to filter out all site-wide activity. I’m not sure what other feature the wall plugin provides you require for your site. So the simple solution is to disable the wall plugin. What am I missing?

    #34531
    @kzpower

    Sorry for the confusion. I want to know how to remove New Member and New Avatar Updates from the user’s wall activity stream.

    #34593

    Alyssa
    Participant
    @alyssa-buddyboss

    @kzpower that you for your patience. We use a custom SQL query for the wall. It is located in this file: buddyboss-wall/includes/wall-class.php
    On line 530 find this code:
    $where = "WHERE ( $table.user_id = $user_id AND $table.type!='activity_comment' AND $table.type!='friends' )";

    You can remove the new member and new avatar message by changing to this:
    $where = "WHERE ( $table.user_id = $user_id AND $table.type!='activity_comment' AND $table.type!='friends' AND $table.type!='new_member' AND $table.type!='new_avatar' )";

    #34594
    @kzpower

    You solve my problem! Thank you very much and your time.

    #34611

    Alyssa
    Participant
    @alyssa-buddyboss

    Glad to help 🙂

    #38081
    @andy8mcdonalds

    @tjchester I changed the code in wall-class.php like you said and this didn’t affect my profile /news-feed. It still is showing activity updates from my friends if they changed their avatar, or updated their profile, ect. How would I make it so that it only shows updates of “activity_updates” and “new_blog_posts” referring to the action filters at https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/?

    Also, would it be possible to combine my “Wall” and “News Feed” together so that “Wall” just shows my Status updates like it does now, but then “News Feed” will show my friends status updates and Mine mixed in with it, which is how Facebook would run right now.

    Thank you!

    #38140

    Alyssa
    Participant
    @alyssa-buddyboss

    @vapvarun do you have any insight on this issue?

    #38147
    @andy8mcdonalds

    It seems like my personal news feed is not showing profile and avatar updates anymore, only back about a week ago. It’s mostly showing activity updates which is good. I’m not sure if this has fixed it from the this time forward, still would be interested in combining the wall and news feed together.

    #38164
    @vapvarun

    hi @andy8mcdonalds, that can also be done but it need to wall-class.php file customized and that will disable the update functionality of the plugin, if you will update it all those customization will be lost.
    add this
    $user_list = $user_list . ',' . $user_id;

    between
    line 663-664

    $user_list  = implode( ',', $user_ids );
    $group_list = implode( ',', $group_ids );

    with this approach in the news feed you will also have your own activities also.

    Regards
    Varun Dubey

Viewing 12 posts - 1 through 12 (of 12 total)
  • The question ‘buddyboss wall activity loop filter not working’ is closed to new replies.