Making BP Profile Search work with custom member pages could be an interesting new feature, and I plan to explore it.
If you are interested, I could send you a beta version to test. My address is andrea AT dontdream.it
By the way, how did you make the search results appear in your custom page?
Yes I would be delighted to test the beta version. Please send it to me.
I can’t get your email address to work – is it
andrea AT dontdream.it
or
andreaATdontdream.it
or
andrea_AT_dontdream.it
??? None of them works.
I created a template for the custom page based on the index.php file of the buddypress members directory. In the template I call a copy of the “members/members-loop” part template. I hooked the plugin search in with <?php do_action ('bp_profile_search_form'); ?> in the template.
Hi Bis,
Sorry, I didn’t specify you had to replace the ‘ AT ‘ part with a ‘@’.
I did get your message anyway, via the Contact Form on my site, and I’ll send you my beta version.
Thanks for your support Andrea works great now 🙂
To all the other interested readers: the solution that Bis and I (but mostly Bis) devised works for that installation only. I plan to release a general solution in one of the future BP Profile Search versions.
i don’t know if this will help anyone, but we use this in our members-loop.php and it works very nicely.
/* My Custom Member Query to order alphabetical by default */
function my_query_filter_new ( $query_string ) {
$query_string .= '&per_page=36&type=alphabetical';
return $query_string;
}
add_filter( 'bp_ajax_querystring', 'my_query_filter_new' );
i’m afraid just now i cannot find the credit for where i got that little snipped… but will find and post (and add in to our code!).