BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Exclude certain types from activity stream

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

    #31168

    Anonymous
    @

    I 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,
    Sebastian

    Answers

    #31204

    Alyssa
    Participant
    @alyssa-buddyboss

    @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.

    #31215

    Anonymous
    @

    Hi @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?

    #31266

    Alyssa
    Participant
    @alyssa-buddyboss

    @sebkuehn what code are you using exactly and where is the location of the file?

    #31299

    Anonymous
    @

    The 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

    #31301

    Alyssa
    Participant
    @alyssa-buddyboss

    @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.

    #31308

    Anonymous
    @

    Thanks 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…

    #31314

    Alyssa
    Participant
    @alyssa-buddyboss

    @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?

Viewing 8 posts - 1 through 8 (of 8 total)
  • The question ‘Exclude certain types from activity stream’ is closed to new replies.