BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Exclude certain types from activity stream
- This topic has 7 replies, 2 contibutors, and was last updated 10 years, 2 months ago by Alyssa.
Question
September 1, 2014 at 7:26 pm #31168@
AnonymousI used to filter out some activity types like ‘friendship_created’ or ‘joined group’ on the global newsfeed by customizing the activity-loop.php. After updating to 4.0 and installing BuddyBoss Wall, there are no more news items shown.
When deleting the custom activity-loop.php from my child theme they appear again but I’m not able to exclude certain activity types. Is there any other way to customize the activities shown on the newsfeed?
Thanks and thumbs up for the creation of a great buddypress theme,
SebastianAnswers
September 2, 2014 at 3:46 pm #31204@alyssa-buddyboss
AlyssaParticipant@sebkuehn Welcome to the BuddyBoss community! This is a BuddyPress issue, I do not believe there is any other way to customize the activities shown on the newsfeed. Perhaps you can try posting on the BuddyPress forums for help, they may know another way.
September 2, 2014 at 4:43 pm #31215@
AnonymousHi @tj thanks for your reply. My problem is that it worked perfectly fine before updating to 4.0 and now I cannot use the filter for the activity-loop.php anymore.
I see that the activity-loop.php is still called from the buddyboss/buddypress/activity/index.php but only produces an empty newsfeed. If I go to the BuddyPress forums I will probably get the solution that worked before the BuddyBoss update. Is there really no way to customize the newsfeed with BuddyBoss?
September 4, 2014 at 8:30 am #31266@alyssa-buddyboss
AlyssaParticipant@sebkuehn what code are you using exactly and where is the location of the file?
September 4, 2014 at 7:39 pm #31299@
AnonymousThe file is located in buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php. I moved the file into the buddyboss child theme (buddyboss-child/buddypress/activity).
The customized code replaces the bp_has_activities as follows:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity') .'&action=bbp_topic_create,bbp_reply_create,bp_doc_created,bp_doc_edited,bp_doc_comment,activity_update,activity_comment,status_update') ) : ?>
By doing so I was able to only include certain activity updates prior to the 4.0 update.
Thanks for your help
September 4, 2014 at 8:51 pm #31301@alyssa-buddyboss
AlyssaParticipant@sebkuehn that is trying to use legacy files, not recommended any longer. Try the recommendations here: http://buddypress.org/support/topic/block-activity-stream-types/ you can also try to message palmdoc on this forum.
September 4, 2014 at 9:31 pm #31308@
AnonymousThanks for the suggestion but I tried that already without success. To me it looks like the files were restructured for buddyboss 4.0 and now nothing I try seems to have any effect on the activity stream. I will try contacting palmdoc but I’m not very optimistic since his solution seemed to work before.
I’m just trying to understand how to work around the new buddyboss/buddypress/activity/index.php. There used to be the activity-loop.php in this folder which is no longer supported but was easy to customize…September 5, 2014 at 8:31 am #31314@alyssa-buddyboss
AlyssaParticipant@sebkuehn we simply no longer edit the file so it still exists in the buddypress plugin folder and it should work if you place it in the same location which is why I suggested contacting BuddyPress for support. But can you quickly check if it works when you use the TwentyFourteen theme with the same edit?
- The question ‘Exclude certain types from activity stream’ is closed to new replies.