WordPress.org

Forums

BP Disable Activation Reloaded
User Role BP 2.0 (4 posts)

  1. sharmavishal
    Member
    Posted 12 months ago #

    Hi

    The plugin is working fine but the user is not being assigned any site role. The backend admin shows no role for this site. Its not picking up the default user role.

    How do i fix this?

    Thanks in advance.

    Vishal

    https://wordpress.org/plugins/bp-disable-activation-reloaded/

  2. kshade
    Member
    Posted 11 months ago #

    I just want to say that I've got the same problem after updating to WordPress 3.9.1 (from 3.8.something). Guess WordPress changed the way activation works? The original plug-in has the same issue, all new users

  3. kshade
    Member
    Posted 11 months ago #

    I've solved the issue by editing bp-disable-activation.php. Add this to line 8 (BEFORE $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) );):

    $activation_key = get_user_meta($user_id, 'activation_key', true);
    $activate = apply_filters('bp_core_activate_account', bp_core_activate_signup($activation_key));
  4. Damian
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks for the fix, I didn't have time to check myself.

Reply

You must log in to post.

About this Plugin

  • BP Disable Activation Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.