Oxygen Compatibility
-
Hey there,
is this plugin compatible with oxygen?
When adding the shortcode, I just get the plain shortcode shown on the live page but no login buttons.Any suggestion?
-
Hi @rstackj
We don’t have an integration for Oxygen builder, but if other shortcodes work in the block that you used, then our shortcode should work, too.
Anyways what you need to know is that, our shortcode will only turn into social buttons if you have at least one provider configured and enabled. Did you verify and enabled at least one provider? If you didn’t then please check the Getting Started section of the providers that you would like to enable on your site.
Also it is important to mention that if you used the default shortcode:
[nextend_social_login]
that will only display the social buttons for users who are not logged in to your site, since for logged in users we rather display link and unlink buttons.To be able to display all 3 states of the social buttons ( login, link, unlink ), you should use this shortcode instead:
[nextend_social_login login="1" link="1" unlink="1"]Note:
If you are interested in our shortcode parameters, you can find more information here:
https://nextendweb.com/nextend-social-login-docs/theme-developer/#shortcodeBest regards,
Laszlo.Hi Laszlo,
I figured out the problem:
When having enabled WP User Manager, the redirection after clicking a social login button is wrong and it redirects to the login page configured in wp user manager.
Is this known?Cheers
Hi @rstackj
I am not really sure what you mean exactly.
Do you mean this is the flow of the login process:- Visitor presses the social button
- visitor logs in to the social media account
- visitor logs in to your site
- visitor gets redirected to the page where you redirect certain roles with WP User Manager
If you mean that, that actually seems to be fine if Nextend Social Login registers the users with the same role that you specified the redirect for.
But if you want to prevent that, then you could enable our “Prevent external redirect overrides – Disable external redirects” setting that you can find at our Global Settings > General tab:
https://nextendweb.com/nextend-social-login-docs/global-settings/If you meant something else, could you send me a link where I can check this behavior?
If you don’t want to share the URL of your site on this forum, then feel free to open a support ticket here:
https://nextendweb.com/contact-us/nextend-social-login-support/?ref=https://ww.wp.xz.cn/support/topic/oxygen-compatibility/#post-14730082
and we will check this problem on your site.Best regards,
Laszlo.I’m good sharing it here:
https://eldenring-wiki.com/login/
Check out what happens when you click the facebook login button.
This seems to be a conflict between nextend and wp user manager, which redirects the default wp-login.php to a custom site.Preventing external redirects doesn’t do anything unfortunately.
E: It works if I disable wp user manager’s “Enable to lock access to wp-login.php. Users will be redirected to the WPUM login page.” option.
That’s probably it, but I’d still like to use it with that option enabled. Any way to solve this?
-
This reply was modified 4 years, 10 months ago by
rstackj.
Hi @rstackj
I checked the login with Facebook at:
https://eldenring-wiki.com/login/
and logged in to your website successfully. After the login I was redirected back to the same page:
https://eldenring-wiki.com/login/If you actually meant this, then it is actually the intended behavior. Since Nextend Social Login always tries to redirect the user back to the same page where the social button was pressed ( except if it is the WordPress default login page: /wp-login.php since from there we rather redirect the users to the homepage).
In your case the social buttons was pressed on this custom login page /login and that is the reason the user will be redirected back there.
We don’t have a control over how that page handles the logged in users. In your case it displays the name, a profile link, account settings, logout link and link/unlink buttons.
If you don’t want logged in users to access to that page, then you should redirect them from there to the page where you want these users to end up.On our end what you can do:
A.) You could use our “Fixed redirect URL – for Login / for Register” feature, as that is the strongest redirect setting in Nextend Social Login. So whenever a user registers or logs in with social login, we will rather redirect the users to the specified URL. You can find this setting on our General tab, too.B.) You could do some custom coding, and override our redirects in certain cases. You could do that by using our {{provider-id}}_login_redirect_url and {{provider-id}}_register_redirect_url filters where {{provider-id}} needs to be replaced with the ID of the given provider, e.g.: facebook_login_redirect_url.
However please note that, we can not provide support for custom coding or problems caused by custom codes. But we have a documentation, where you can find some examples for the usage: https://nextendweb.com/nextend-social-login-docs/backend-developer/#role-redirectHi @rstackj
Meanwhile I see you made an edit.
So it is possible that I checked the login on your site after you disabled that setting and that’s why the login worked for me.So I installed “WP User Manager” on my local test site, enabled this:
- Lock Access to wp-login.php – Enable to lock access to wp-login.php. Users will be redirected to the WPUM login page.
setting and I managed to reproduce the problem that you actually meant.
So I will describe what happens and how you can solve the problem.
The problem:
By default Nextend Social Login handles its codes over the WordPress default login page ( /wp-login.php ). However, the mentioned setting automatically redirected those request to the login page, so basically we didn’t manage to get to the point where we start our login process.How to fix the problem:
To fix the problem, you should make Nextend Social Login handle its codes over a page, other than the /wp-login.php page.
For this you need to use our “OAuth redirect uri proxy page” and “Page for register flow” settings, you can find these on our General tab:For the “Page for register flow” setting: you should create a new page then add this shortcode to it:
[nextend_social_login_register_flow]
then save this page and at the Page for register flow setting, you should select it from the list. Extra information before the registration ( like Privacy policy ) will be asked on this page.For the “OAuth redirect uri proxy page”: you should create another new and completely empty page. Then at the “OAuth redirect uri proxy page” setting you should select the created page from the list. Once it is done, the redirect URL of all configured providers will change, so you will need to add the new redirect urls to your Apps. Nextend Social Login will also warn you about this with an error message, where you can see the necessary steps. ( But actually you can always find the redirect urls in the Getting Started section of the providers. )
Once it is done, the problem will no longer occur, even if you have the problematic setting enabled in WP User Manager.
The topic ‘Oxygen Compatibility’ is closed to new replies.