Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Activity streams, keep mentions for BBPress


  • tech55541
    Participant

    @tech55541

    Hello,
    I am running the latest versions of BBPress, BuddyPress, and WordPress. I am using the below code to use BuddyPress mentions for BBPress.

    /*Add Mentions to BBPress*/
    function custom_bbpress_maybe_load_mentions_scripts( $retval = false ) {
    	if ( function_exists( 'bbpress' ) && is_bbpress() ) {
    		$retval = true;
    	}
     
    	return $retval;
    }
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'custom_bbpress_maybe_load_mentions_scripts' );

    I do not need to use the Activity streams, is there a way to disable the Activity streams but still keep the mentions functionality that BuddyPress provides?

    Thanks.

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

  • Henry Wright
    Moderator

    @henrywright

    @-mentions require the activity stream component and as far as I know there’s no way around that.


    tech55541
    Participant

    @tech55541

    Not the news I wanted to here, but thanks for replying. 🙂


    r-a-y
    Keymaster

    @r-a-y

    I know bbPress has their own version of at-mentions. You should experiment by disabling the Activity Streams component from BuddyPress and testing an at-mention in a bbPress forum post to see what happens.


    tech55541
    Participant

    @tech55541

    Hello,
    Already have. 🙂 It does not give you any suggestions of usernames and I do not think it sends you email notifications if the person is not subscribed to a topic.

    Thanks.


    r-a-y
    Keymaster

    @r-a-y

    bbPress wouldn’t give you any suggestions.

    I just took a look at the bbPress codebase and bbPress should link usernames when @USERNAME is used in the post content. That’s basically the extent of their at-mention functionality.

    You might want to keep an eye on these tickets in bbPress Trac:
    https://bbpress.trac.wordpress.org/ticket/2409
    https://bbpress.trac.wordpress.org/ticket/2773


    tech55541
    Participant

    @tech55541

    Thanks for those tickets, I will keep an eye on them.


    jameshogan03
    Participant

    @jameshogan03

    @tech55541 would you mind sharing your knowledge with a newbie? I am running buddypress/bbpress and bbpress still haven’t added auto-suggestions (although they work fine in buddypress forms).

    Should I add your code to my bp-custom.php? I get a ‘Fatal Error’ when I run it through a php-checker.

    Would you lend me some advice about using this code you’ve kindly shared??

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