This topic has 4 replies, 2 voices, and was last updated 8 years by joy.

  • Author
  • #93985
     joy
    Participant

    Hello team, can anyone help with changing the default filter for the buddypress activity stream? It’s currently set to Everything and I would like to set it to Comments instead. Thank you.

    #93992
     sharmstr
    Moderator

    Info found in the buddypress forums: https://buddypress.org/support/topic/resolved-set-activity-stream-default-to-updates-not-everything/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #94002
     joy
    Participant

    Thank you. I tried that but I’m not sure what I’m doing wrong. This is what I used:

    COPY CODE
    function filtering_activity_default( $query ) {
      if ( empty( $query ) && empty( $_POST ) ) {
        $query = 'action=comments';
      }
      return $query;
    }
    add_filter( 'bp_ajax_querystring', 'filtering_activity_default', 999 );

    Does that seem correct or do you notice any problems in this?

    #94011
     sharmstr
    Moderator

    try changing it to new_blog_comment

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    #94040
     joy
    Participant

    I think that was the fix. Thank you so much.

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?