BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › buddyboss wall activity loop filter not working
Tagged: activity stream, buddyboss-wall, Loop
- This topic has 11 replies, 4 contibutors, and was last updated 9 years, 7 months ago by Anonymous.
Question
January 8, 2015 at 1:55 am #34487@kzpowerI 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
January 8, 2015 at 10:35 am #34502@alyssa-buddyboss
AlyssaParticipant@kzpower Welcome to the BuddyBoss community! Are you trying to edit the global activity stream or the profile activity stream?
January 8, 2015 at 11:24 am #34506@kzpowerThanks 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?January 8, 2015 at 6:22 pm #34514@alyssa-buddyboss
AlyssaParticipant@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?
January 8, 2015 at 10:53 pm #34531@kzpowerSorry for the confusion. I want to know how to remove New Member and New Avatar Updates from the user’s wall activity stream.
January 10, 2015 at 12:09 pm #34593@alyssa-buddyboss
AlyssaParticipant@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' )";
January 10, 2015 at 12:22 pm #34594@kzpowerYou solve my problem! Thank you very much and your time.
January 10, 2015 at 5:33 pm #34611@alyssa-buddyboss
AlyssaParticipantGlad to help 🙂
March 27, 2015 at 4:54 pm #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!
March 28, 2015 at 6:58 pm #38140@alyssa-buddyboss
AlyssaParticipant@vapvarun do you have any insight on this issue?
March 28, 2015 at 7:43 pm #38147@andy8mcdonaldsIt 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.
March 29, 2015 at 5:52 am #38164@
Anonymoushi @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
- The question ‘buddyboss wall activity loop filter not working’ is closed to new replies.