Forum Replies Created
-
Author
-
ahodhellysar
Participant1 – so the live search is separated of the default wordpress search page..so it’s all depends in how fast the search results fire before the user press enter .. the problem is , there’s a lag , about 2 3 seconds before the results appear , they aren’t instantly appearing .. the user input the search query and nothing happens instantly , he wait 2 seconds till the results fire .. and through this 2 second waiting , there’s no any sign that’s something performing , no loading circle like this in your demo
watch the video :
what i need is to know how to speed the live search performance and to show a preloading icon like this in your demo
2 – i have solved the search member by only numeric value by editing this line in the theme function file .. line 621
COPY CODEif ( function_exists( 'bp_is_active' ) && is_numeric( $search_string ) && ( $context == "any" || in_array( "members", $context ) ) ) { $members = bp_core_get_users( array( 'search_terms' => $search_string, 'per_page' => $defaults['numberposts'], 'populate_extras' => false, ) ); }now the search get members only if the search string is a numeric value .
but still there’s a problem , that’s if the user will use the member search page , or will use a direct link .
what i need is , a similar code to this you provided before , to redirect or get the 404 not found page if the $search_string is not numeric in the member search page ..bp_get_members_directory_permalink() . "?s=" . $search_string3- about the default search page “domainname.come/s?=” i think i need a search plugin for it .. would you advice me any good plugin support buddypress ?
July 1, 2017 at 23:00 in reply to: show/hide Nav-tabs and sub-nav tabs based on the user role #165853ahodhellysar
ParticipantNot marked as solution -
AuthorPosts