Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: several requests #175483
     ahodhellysar
    Participant

    1 – 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 CODE
    		if ( 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_string

    3- 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 ?

    in reply to: Add a custom dynamic link to the menu items #171760
     ahodhellysar
    Participant
    Not marked as solution
     ahodhellysar
    Participant
    Not marked as solution
Viewing 3 posts - 1 through 3 (of 3 total)

Log in with your credentials

Forgot your details?