Skip to:
Content
Pages
Categories
Search
Top
Bottom

Enabling suggestions for @-mentions in groups component


  • m@rk
    Participant

    @mrk-1

    Hi @boonebgorges and all together,

    everybody loves the new suggestions for @-mentions!

    But… is there any reason why they aren’t enabled for the groups component (BP 2.1.1)?

    Looks like suggestions would work properly also for groups by just adding a condition bp_is_groups_component() in bp-activity/bp-activity-functions.php:62 – changing it to:

    function bp_activity_maybe_load_mentions_scripts() {
    	$retval =
    		bp_activity_do_mentions() &&
    		bp_is_user_active() &&
    		( bp_is_activity_component() || bp_is_groups_component() || bp_is_blog_page() && is_singular() && comments_open() || is_admin() );
    
    	return (bool) apply_filters( 'bp_activity_maybe_load_mentions_scripts', $retval );
    }

    Wouldn’t that mean a nice improvement?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enabling suggestions for @-mentions in groups component’ is closed to new replies.
Skip to toolbar