Viewing 5 replies - 16 through 20 (of 20 total)
  • Hi bcaille,

    Just pushed up 1.0 so you can download the 1st version. You should really try to upgrade your WordPress install to the most current version…

    Thanks a lot messenlehner. It does work great.
    I totally agree. 2.8.6 is outdated, but our customer doesn’t have enough budget for now for further modifications.

    Thanks again.

    Hi,

    I’ve installed WP3.0.1, BP 1.2.6 and and BP-Registration-Options 3.0.3.
    When i register a new user, it doesnt activate the plugin features.

    Is there something more i need to configure in WP ?

    Thanks for the support

    FYI, I had to delete 3 occurences of “switch_to_blog(1”) because it makes network sites bug (current_blog values were lost)
    Was this call usefull ? i don’t understand.. maybe keep it and add a restore_blog call at this end of each 3 functions ?

    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.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘[Plugin: BuddyPress Registration Options] Doesn’t work. No Support’ is closed to new replies.