I ran into the same issue also… fortunately for you, I have a fix; I was just about to e-mail the developer about the fix when I came upon your question!
You’ll have to replace a file:
/wp-content/plugins/wordpress-social-login/includes/services/wsl.authentication.php
With this (I made multiple fixes so I am giving you the updated file instead of where to make the fixes):
[Excessive code removed]
by the way, all my changes are noted with “HH” comments. Hope it works for you.
Could you repost that to a pastebin – that’s really too much code to post on these forums – http://codex.wordpress.org/Forum_Welcome#Posting_Code
WPyogi,
Thanks for the info. I’ll try to summarize the changes instead then…
In function wsl_process_login_create_wp_user, right after “Send Notification”
// Send notifications
/* HH begin move notification here */
if( get_option( 'wsl_settings_bouncer_new_users_moderation_level' ) == 101 ){
@ Theme_My_Login_User_Moderation::new_user_activation_notification( $user_id );
}
if( get_option( 'wsl_settings_bouncer_new_users_moderation_level' ) == 102 ){
//HH_log(sprintf('calling admin notify on user_id %d', $user_id));
@ Theme_My_Login_User_Moderation::new_user_approval_admin_notification( $user_id );
}
/* HH end move notification here */
In function wsl_process_login_authenticate_wp_user, right after lines:
// store user hybridauth user profile if needed
wsl_store_hybridauth_user_data( $user_id, $provider, $hybridauth_user_profile );
put in:
/* HH add begin - modified from Theme My Login's user-moderation.php's authenticate function */
/* HH only do moderation if it's in pending */
$HH_mod_level = get_option( 'wsl_settings_bouncer_new_users_moderation_level' );
global $wpdb;
$tmp_cap_key = $wpdb->prefix . 'capabilities';
if ($tmp_user_data = get_user_by('id',$user_id)) {
if (array_key_exists('pending', (array) $tmp_user_data->$tmp_cap_key)) {
/* HH add end */
Make sure to add a closing } before the line that says:
// otherwise, let him go…
That’s the summary of changes to get the fix… I made other changes to make it nicer, but in consideration of the copyright and all… I guess it’s better that I don’t post the whole thing. Hope you can follow this.
Ahh, I wasn’t so good at searching for solutions on-line as I thought. OK, his solution is quite a bit cleaner, but there might still be a bug where it doesn’t notify the admin of the pending approval… but then again, you are not using the admin approval option, so it should be fine for you.
Hi All,
I am seriously struggling with this. I am not a coder which is probably the main part of the problem.
I have tried to implement 10goC’s fix however this doesn’t seem to have any effect.
Even if the use is approved I am still being directed to the confrirm email and name screen, which then tries to register a new user with the details you enter leading to a ‘this email is already registered’ error.
It works if I dont use bouncer, however I want better usernames than the name + number that is output from facebook (haven’t tried with other yet)
Help!
Thanks
John