-
hi there,
I have set up both twitter and google for the social login shortcode. I am using this code:[userpro_social_connect facebook_title="Connect with Facebook" twitter_title="Connect with Twitter" google_title="Connect with Google" size=normal facebook_redirect="http://www.mysite.com/special/"]
Twitter is configured as follows:
Redirect after registration: http://www.mysite.com/special/
REdirect after login: http://www.mysite.com/homeGoogle the same.
Redirect after registration: http://www.mysite.com/special/
Redirect after login: http://www.mysite.com/homeI then set up a Custom Redirect for Subscribers to ensure that also Facebook logins are taken to http://www.mysite.com/home
Everything works. Except for Google.
I did some testing and basically the Redirect after registration is ignored completely. Users who register with google are taken to the page I set up for “redirect after login”. I have tried with brand new google account connections, not just mine, which would have been saved someone in the settings.
Anybody else has noticed this?
I have the latest version of UserPro (even though it’s showing 1.0.88 in WordPress. Ah, I have WordPress 3.9.1Cheers
If it is a new google connected user it uses the signup redirect as in this code
$user_pass = wp_generate_password( $length=12, $include_standard_special_chars=false );
$unique_user = $this->unique_user(‘google’, $user_info);
$user_id = $this->new_user( $unique_user , $user_pass, ”, $user_info, $type=’google’ );
userpro_auto_login( $unique_user, true );if (userpro_get_option(‘google_signup_redirect’)){
wp_redirect( userpro_get_option(‘google_signup_redirect’) );
} else {
wp_redirect( $this->permalink() );
}It is also set in admin panel as custom redirect URL after registration; please re-download the plugin here:
http://userproplugin.com/userpro/customer_portal/
Please try it again
hi and thanks. Sorry, not too techy here. What am I supposed to do with the code you shared?
Or should I just re-download the plugin?It just show you that it should indeed use the google redirect feature, please re-download the plugin and try again.
No luck. Still redirecting to the url specified for login redirection, not registration redirection.
Guess it could be a conflict with other settings (backend redirects etc). I’ll probably have to disable google integration, but it’s a shame! I really wanted to use it!That is not logical; it will redirect only to signin url if you are resigning in already have account or such.
I know, it’s bizarre, but I asked friends to try using their google account which surely had never been associated with my development site. I’m too tired to think straight now, I will look into it further tomorrow.
Thanks for the help,
cheersHi!
Little update.
I reset all the plugin options (using the reset options button) so everything was back to the original settings. Reconfigured Google integration and entered a url for ‘redirect after registration” and one for “redirect after login”. Problem is still there… new registrations are taken to the “after login” page, not the “after registration” page.Let’s see if others report this. For now I’ll have to not use google integration.
Cheers!
You must be logged in to reply to this topic.