• Hi,

    two questions:

    1) Searching for names: When I entry some characters in the search form (for example “sol”) the results show all members that have “sol” somewhere in their name. But I like to show only those members whose names (surname or given name) BEGIN with “sol”. Is that possible?

    2) Is it possible to exclude certain members from the search (by user ID)?

    https://www.ads-software.com/plugins/bp-profile-search/

Viewing 1 replies (of 1 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi cityfox,

    1) You can set the ‘Text Search Mode’ of your form to ‘SAME’, and when searching enter ‘sol%’ in the search field.

    2) You can modify the file /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php. At line 27 replace

    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>

    with

    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&exclude=19,21,27' ) ) : ?>

    Replace 19,21,27 with your list of user IDs to exclude.

Viewing 1 replies (of 1 total)
  • The topic ‘Search names that BEGIN with search term & How to exclude members’ is closed to new replies.