Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress SiteWideActivity Updates Only


  • madhall
    Participant

    @madhall

    Hi there!

    I would like to display only member updates on the Activities page (Would like to avoid any other updates like profile changed, etc) – How can I achieve this? I have tried looking through the forums but unable to find a working solution – Nouveau has changed things?

    Using the latest version of buddypress and wordpress.

    any guidance please?

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)

  • Varun Dubey
    Participant

    @vapvarun


    madhall
    Participant

    @madhall

    Hi Varun,

    Thank you for your reply! I am using it but it does not restrict all member activity… which is why I am looking at how to…

    request a solution

    thanks


    Varun Dubey
    Participant

    @vapvarun

    @madhall If you want that activity should not be created at all even at the database.
    You can try following inside child theme functions.php

    function wb_exclude_activity_types_from_recording( &$activity ) {
    
        $excluded_types = array( 'joined_group', 'updated_profile'.'friendship_created' );
     
        if ( empty( $activity->id ) && in_array( $activity->type , $excluded_types ) ) {
            $activity->type = '';
        }
     
    }
    add_action( 'bp_activity_before_save', 'wb_exclude_activity_types_from_recording' );

    As per the Activity Filter plugin, it only hides them with bp_ajax_querystring, all activity type still get recorded inside the database. You can also check it’s live working here https://www.youtube.com/watch?v=fTwzSN1y61o


    madhall
    Participant

    @madhall

    Hi Varun,

    Thanks, this works… last question – I am using the Followers plugin and Activity Filter. But when I select Followers as the default using Activity Filter – it shows All Members content…

    I am trying to implement the Twitter interface:

    Updates only from me and the people I follow….

    This should be possible right?

    please confirm

    thank you for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar