Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

#5993 closed defect (bug)

Mentions autosuggest not working on groups home page

Reported by: tobyhawkins's profile tobyhawkins Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Activity Keywords:
Cc:

Description

Mentions autosuggest is not coming up for the “what’s new” box on group home page because the mentions.min.js isn't being loaded.

It seems that the group home page is failing the test done by bp_activity_maybe_load_mentions_scripts().

It fails on:
bp_is_activity_component() || bp_is_blog_page()
and
comments_open() || is_admin()

Change History (2)

#1 @shanebp
10 years ago

Confirmed.

Forum reference:
https://buddypress.org/support/topic/mentions-autosuggest-not-working-on-group-home-page/

OP:
"I’ve fixed it using the following code in my bp_custom.php file, but I’m wondering if this is intended functionality, site-specific or a bug?"

function my_load_mentions_on_group_home_page( $retval ) {
	if( bp_is_group_home() )
		$retval = true;
	return $retval;
}
add_filter( "bp_activity_maybe_load_mentions_scripts", "my_load_mentions_on_group_home_page" );

#2 @r-a-y
10 years ago

  • Milestone Awaiting Review deleted
  • Status changed from new to closed

Marking this as a duplicate of #5934.

Note: See TracTickets for help on using tickets.