Forum Replies Created
-
A link that pertains to this subject:
https://buddypress.org/support/topic/add-second-role-to-exclusion-from-members-loop-php/
This seems to happen in the regular profile loop output too.
I’m looking around for ways to have the profile fields
‘respect’ line breaks or carriage returns….I think your looking for the /members/members-loop.php file.
Here’s a ex. of the profile field “City”:
`
<a href="?s=” title=”Search Members in: “>
`
I don’t think this will work on the directory loops, but it works elsewhere…
`
<?php if ( $city = bp_get_profile_field_data( 'field=City ' ) ) {
echo $city;
} ?>
`Hey Thanks @shanebp
I’ll give that a try…The other option I’ve been toying with is creating the State values: as Idaho_state ( more specific search term )
Then display state as “Idaho” ( in the profile ) with some php:
if value “Idaho – ID”
echo “Idaho”I’d be interested in this too.
I find that if I’d like to use term searchs in the directory url (ex. ?s=My Term ) that it messes with ajax.
Also finding ajax pagination to not work when searching via term.Is there a ‘standard’ or non-ajax directory option?
This kinda worked, but then I lost the ability to filter by alphabetical, last active etc.
But if your looking to NOT filter it might be a solution.
`
<?php /* My Custom Member Query */
function my_query_filter_new ( $query_string ) {
$query_string .= ‘&per_page=15&type=newest’;
return $query_string;
}
add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
?>`
Sorry to bring up a old post here, but…
I’m inside of the members-loop.php, I see there is a bp_ajax_querystring(‘members’).
How would I pass bp_has_members() a few parameters in combination with the above?“
Something like this:
` ‘newest’, ‘per_page’=> 15 ) ?>`I’d like to make the default filter ‘newest’ and have 15 members on a page.
Thanks!
Mic
I’m looking for the same thing myself!
Well, here’s a solution that worked for me:
// User Description
$user_meta = get_userdata(bp_displayed_user_id());
echo($user_meta->description);@Andrea_r, Thanks for your wisdom!
BTW. What’s the term to refer to WP ( single blog) ’round these parts?
Looks like it’s time to investigate moving from WP to WPMU.
We’ve been developing profiles with Cimy Extra Fields… and have put a fair amount of work into the Member Profile Fields…
http://nbnetwork.org/directory
Some of our users are not ‘active website users’ per say, so the Web Team updates the profiles for them. Seems like there’s no way for admin’s to do that in the Buddpress profile system.
That said, BP is doing what we’ve been trying to do all along, and doing a much better job of it!
Hi Todd,
I’m in the same boat as you.
Wondering about the same sort of issues…
Mic