Viewing 7 replies - 1 through 7 (of 7 total)
  • I tried this and it does not work.

    Instead of continually getting the wait for approval page / login page, it instead passes the user right on through w/o an Admin first going in and setting the user to subscriber.

    Anyone have any ideas on how to fix this?

    Thread Starter LegeDoos

    (@legedoos)

    Did you set the “New User Default Role” in Settings > WP Social Login > Bouncer > Membership level?

    I have that set as “Subscriber” now.

    Above that I have User Moderation set to “Admin Approval – Yield to Theme My Login plugin” (however installing that extra plugin seemed to do nothing at all, as a side note.)

    Also, my content that needs to be locked down I am using on the templates:

    if (is_user_logged_in() ) > show content
    else > trigger social login

    Plugin Author Miled

    (@miled)

    okay. scheduled for the next release.

    Ok, the link up at the top to that thread works, but you have to know all the steps which at least for me, weren’t very clear..

    Find the file in the plugin folder: includes/services/wsl.authentication.php

    At line 942, right after the following line:
    wsl_store_hybridauth_user_data( $user_id, $provider, $hybridauth_user_profile );

    Add the following:

    // Bouncer
    	if( get_option( 'wsl_settings_bouncer_new_users_moderation_level' ) > 100 ){
    		$role = current(get_userdata( $user_id )->roles);
    	}

    And then replace the if / elseif that follows with:

    // Bouncer :: User Moderation : E-mail Confirmation — Yield to Theme My Login plugin
    	if( get_option( 'wsl_settings_bouncer_new_users_moderation_level' ) == 101 && $role == 'pending' ){
    		$redirect_to = site_url( 'wp-login.php', 'login_post' ) . ( strpos( site_url( 'wp-login.php', 'login_post' ), '?' ) ? '&' : '?' ) . "pending=activation";
    
    		@ Theme_My_Login_User_Moderation::new_user_activation_notification( $user_id );
    	}
    
    	// Bouncer :: User Moderation : Admin Approval — Yield to Theme My Login plugin
    	elseif( get_option( 'wsl_settings_bouncer_new_users_moderation_level' ) == 102 && $role == 'pending' ){
    		$redirect_to = site_url( 'wp-login.php', 'login_post' ) . ( strpos( site_url( 'wp-login.php', 'login_post' ), '?' ) ? '&' : '?' ) . "pending=approval";
    	}

    (You should be replacing the code with the above code up to: // otherwise let him go…)

    THEN, from here go up to lines 89-90
    // HOOKABLE:
    do_action( “wsl_hook_process_login_before_start” );

    and paste:

    // Add TML filters for WordPress Social Login
    	if(!has_filter('user_activation_notification_message', 'user_activation_notification_message_filter')){
    		$tml = Theme_My_Login_Custom_Email::get_object();
    		$tml->apply_user_moderation_notification_filters();
    	}

    That above code requires you to have Theme My Login plugin and I assume it triggers TML to work with this plugin where before it was being bypassed.

    Pop open TML, turn on Moderation, set Moderation to Admin Approval, and you should be set.

    I’m having issues with TML sending the user an email about registration / approval at the moment, but that is the least of my worries over the plugin actually doing what it is supposed to.

    Hope this helps others!

    Plugin Author Miled

    (@miled)

    this should be fixed now. feel free to open a new thread if the issue persist.

    Thread Starter LegeDoos

    (@legedoos)

    I appreciate it! Will test it this week.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘User moderation admin approval doesn't work’ is closed to new replies.