I found a solution that works on the theme and supports updates to the core. This solution will let you use the search bar with the drop down menu and search for articles, members and groups.
First, add this javascript inside the head tags in the header.php file of the theme:
`
var check_url = function() {
var value = document.getElementById(“search-which”).value;
if (value==”article”) {
document.getElementById(“search_form”).method=”get”;
document.getElementById(“search_form”).action=””;
document.getElementById(“search-terms”).name=”s”;
}
else {
document.getElementById(“search_form”).method=”post”;
document.getElementById(“search_form”).action=””;
document.getElementById(“search-terms”).name=”search-terms”;
}
}
`
And then replace the search form that comes with buddypress (inside the same header.php file) with this one:
(to avoid confusions just look at the php lines that wrap the form)