ok I’ve made something really fast for you….
0.1 place this function into your functions file at the end of the closing php tag ” ?> ” !
<?php
function uloga_directory_search_form( $directory ) {
global $bp;
$form_id = 'search-' . $directory . '-form';
$input_id = $directory . '_sarch';
$submit_id = $directory . '_search_submit';
$search_value = __( 'Search ' . $directory, 'buddypress' );
if ( !empty( $_REQUEST['s'] ) )
$search_value = $_REQUEST['s'];
?>
<form action="" method="get" id="<?php $form ;?>">
<label><input type="text" name="s" id="<?php $input_id ;?>" value="<?php echo esc_attr($search_value) ?>" onfocus="if (this.value == '<?php _e( 'Search ' . $directory, 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search ' . $directory, 'buddypress' ) ?>';}" /></label>
<input type="submit" id="<?php $submit_id ;?>" name="groups_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
</form>
<?php
}
?>
0.2 now you have to change the bp_directory_members_search_form() function with uloga_directory_search_form( $directory ) ,replace $directory for example with “Members”
or “Groups” ,etc.