DarkLevi
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [BP Labs] Autosuggest shows user multiple timesinstead of commenting out 'number' => (int) $_POST['limit'], you can put the number of suggestions maximal showneven not working cause every entry will be fetched over 30 times, so do this:
$user_search_results_multiple = get_users( $args ); $user_search_results = array_unique($user_search_results_multiple, SORT_REGULAR); array_splice($user_search_results, 6(number of entries shown)); if ( empty( $user_search_results ) ) {Forum: Plugins
In reply to: [BP Labs] Autosuggest shows user multiple times$args = array( 'count_total' => false, 'number' => (int) $_POST['limit'], 'search' => "{$search_query}*" );instead of commenting out
'number' => (int) $_POST['limit'],
you can put the number of suggestions maximal shownForum: Plugins
In reply to: [BP Labs] Autosuggest shows user multiple timesdid it:
$args = array( 'count_total' => false, 'number' => (int) $_POST['limit'], 'search' => "{$search_query}*" );to
$args = array( 'count_total' => false, //'number' => (int) $_POST['limit'], 'search' => "{$search_query}*" );and
$user_search_results = get_users( $args ); if ( empty( $user_search_results ) ) {to
$user_search_results_multiple = get_users( $args ); $user_search_results = array_unique($user_search_results_multiple, SORT_REGULAR); if ( empty( $user_search_results ) ) {=)
Viewing 3 replies - 1 through 3 (of 3 total)