Forum Replies Created
-
… in multi-site mode.
It sounds like your patch only covers activity. When I unmarked the spammed users there was no x_profile data, friends, groups, blogs or messages either.
I was running BP 1.2.8 and WP 3.1.1.
I marked a large number of users as spammers to temporarily block them from the site. When I reinstated them all of their BP data had gone (custom fields, activity, etc)! I don’t know if this is ‘normal’ behaviour for BP so I suggest anyone considering doing this tests it first.
I’ve done a complete restore from back up and am now looking for an alternative. If anyone has any ideas please let me know. Thanks.
@r-a-y – Thanks! That worked.
@burtadsit I have been able to achieve a positive result using @jeffsayre ‘s code, however I want to set the value of my $var outside the template. Do you know if this is possible? I fear not based on what you said above:
“I’ve run into this before. That code snippet above only works if the $foo’s are created in the template. The code underneath that contains $foo’s is a different scope.”
I’ve tried setting my $var in my functions.php file and in my custom page template by hooking in to bp_before_members_loop:
<?php
function my_function() {
$var = ‘xxx’;
}
add_action(‘bp_before_members_loop’,’my_function’);
?>Many thanks!
@dwdutch Do you mind sharing your plug-in code? I’m trying to do pretty much the same thing – list members on a page who have have a certain profile field set.
I plan on rolling out similar filtering elsewhere but at the moment that seems like a distant dream.
I am using your ‘Admin-only’ xProfile Group mod so it’s a double thanks from me.
Hey dpolant, I’m in the same boat as you. Did you manage to get in touch with Bert?