Hey messenlehner, I think I’ve been able to get it to behave itself in 3.0.1 again. Here’s the changes I made to bp-registration-options.php:
ADDED: (basically I took the security update you were doing in activation and made it happen immediately in signup)
function bprwg_signup_regoptions($user_id = false) {
global $wpdb;
$bp_moderate=get_option('bprwg_moderate');
$status = get_usermeta($userid, 'bprwg_status');
if ( empty( $user_id ) )
{
$user_id = $bp->loggedin_user->id;
}
if ( empty( $user_id ) )
{
return false;
}
if ($bp_moderate=="yes") {
$user_info = get_userdata($userid);
$username=$user_info->user_login;
//add/update usermeta status to pending
update_usermeta($user_id, 'bprwg_status', 'pending');
update_usermeta($user_id, 'bprwg_ip_address', $_SERVER['REMOTE_ADDR']);
//update wp_users to deleted=1, this will prevent member from being listed in member directory but not actually delete them. once appoved will be updated back to 0, if denied will fully delete account
$sql="update ".$iprefix."users set deleted=1 where ID=$user_id";
$wpdb->query($wpdb->prepare($sql));
//fire off email to admin about new memebr with links to accept or reject
$mod_email=$username." would like to become a member of your website, to accept or reject their request please go to ".get_bloginfo("url")."/wp-admin/admin.php?page=bp-registration-options&view=members \n\n";
$admin_email = get_option('admin_email');
wp_mail($admin_email, 'New Member Request - Created', $mod_email);
}
}
add_action( 'bp_core_signup_user', 'bprwg_signup_regoptions');
I then removed the similar code from the activation section: it seems like the corner cases where people have problems seem to involve when they create but don’t activate an account.
It seems to work pretty well with this change in place: approval wasn’t working on my install, but now is.
Automatic addition to groups still isn’t working, and I can’t check whether blogs are…
Anyways, hopefully this helps with some of the people who are having issues with 3.0.1 (myself included). I’ll keep looking further at it and see if I can help with the other features.