
If your BuddyPress network is not
open for pubic registration and you use invitation for making new
registrations. Then you might like disabling BuddyPress required user
activation.
User activation is default process of
BuddyPress where it sends an activation email to the person who is
making registration in your BuddyPress site, this confirms weather the
person has entered his correct email address or not.
If you use invitation process for
registration then it doesn’t mean anything for increasing one more step
of user activation because your invitation already reaches to the
person’s inbox whom you are inviting and by clicking that link one can
register on your site so if you like disabling user activation you can
disable it via plugin or hack. Here we are discussing both so you are
free to use whatever you like.
Using BuddyPress Plugin
Easiest way for disabling user activation is BP Disable Activation plugin,
all you need is to install and activate this plugin and forget about
it. It doesn’t need any additional configuration settings, it doesn’t
show any option in settings menu. All it does is, it stops sending an
email activation link. When someone registers in your network he gets
automatically logged-in (if he enters the correct information) as he clicks ‘Complete Sign Up’ button.
Using BuddyPress Hack
You can also use the following hack suggested by Andy Peatling at BuddyPress.org Forums:
function disable_validation( $user_id ) {
global $wpdb;
$wpdb->query( $wpdb->prepare( “UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d”, $user_id ) );
}
add_action( ‘bp_core_signup_user’, ‘disable_validation’ );
function fix_signup_form_validation_text() {
return >false;
}
add_filter( ‘bp_registration_needs_activation’, ‘fix_signup_form_validation_text’ );
Comments
Post a Comment