Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where is the members page’s search box source code?

  • @batufan

    Participant

    Hi buddies,

    I didn’t find the members or groups page’s search box source code. Which directory is the source code? I wonder it. Please help me, thanks…

Viewing 4 replies - 1 through 4 (of 4 total)
  • @danbp

    Participant

    hi @batufan,

    bp-templates/bp-legacy/buddypress/groups/index.php:10
    bp-templates/bp-legacy/buddypress/members/index.php:10

    Functions are
    bp_directory_groups_search_form & bp_directory_members_search_form

    Respectively in bp-groups/bp-groups-template.php & bp-members/bp-members-template.php

    @marcella1981

    Participant

    I think it’s in a core file somewhere, having looked into index.php (inside buddypress/templates/members/) now index-directory.php there’s no specific function call that I can see .

    However you can build your own search form, just make sure you set the input name to be that of “s” and it should work. With AJAX you can look into buddypress.js to see how the devs have hooked up the form.

    @marcella1981

    Participant

    @batufan

    Yeah @danbp knows what I don’t.

    @danbp

    Participant

    @marcella1981 🙂

    if you want to remove the boxes, use (in bp-custom.php)

    function bpfr_remove_search_forms( $search_form_html ){	
       return '';
    }
    add_filter( 'bp_directory_members_search_form', 'bpfr_remove_search_forms' );
    add_filter( 'bp_directory_groups_search_form', 'bpfr_remove_search_forms' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where is the members page’s search box source code?’ is closed to new replies.
Skip to toolbar