Conversation
supportI need to redirect users to different pages after they login and I use the LoginWP plugin to do this. Will this work with the FireBox modal login? Thanks! Kristen
Hello @fraugefahr , I assume that LoginWP provides a way to automatically redirect your users after logging in to your desired page. The LoginWP plugin should provide the functionality you describe. Alternatively, if they provide a Javascript API, you can listen to when the user has logged in and redirect them to your desired page, but that’d require Javascript knowledge. Regards, Stergos
Thank you, it works! I didn’t end up having to use Javascript. -Kristen
Glad it’s working for you. Stergos
I consider myself a rookie, so I may be missing something essential here, but for me things do not work. In my test, I used Members plugin to define two roles (role1 and role2), then created two users (one per role) and then used loginWP to define two redirection rules based on the user role. Then I created a popup login using elementor, login/signup popup and firebox. They all work (user logs in successfully), but no redirection applies. As I said, I am trying to learn something fooling around with xampp: the test framework is really simple, what am I doing wrong?
Hello @roberto21 , Sorry for the late reply. As mentioned, LoginWP should provide a way to set up a redirection URL when a form is submitted. If they do not provide such a way, assuming they provide a Javascript API, you can use it to redirect the user when they successfully submit the form. You can add your custom Javascript within the campaign > Advanced > Custom Code section. Regards, Stergos
Thanks for your answer. Unfortunately, I am not that advanced to use javascript, so since fraugefahr managed to make it work without javascript, I thought there was some mistake in my approach. I really don’t know why it doesn’t work, since the test setup is really simple. Hope that fraugefahr will clarify exactly what he has done to make it work. Thank you anyway.
I don’t know if anyone is interested, but I found the solution for redirection after login with popup login created with login/signup popup plugin. The solution is buried in the loginWP (Peter’s redirect) documentation. After you define the redirection rules with loginWP, you have to define the redirect url in login/signup popup plugin as https://yoursite.tld/?loginwp_link_redirect=true obviously replacing the yoursite.tld with your domain address.
Hello @fraugefahr , I assume that LoginWP provides a way to automatically redirect your users after logging in to your desired page. The LoginWP plugin should provide the functionality you describe. Alternatively, if they provide a Javascript API, you can listen to when the user has logged in and redirect them to your desired page, but that’d require Javascript knowledge. Regards, Stergos
Thank you, it works! I didn’t end up having to use Javascript. -Kristen
Glad it’s working for you. Stergos
I consider myself a rookie, so I may be missing something essential here, but for me things do not work. In my test, I used Members plugin to define two roles (role1 and role2), then created two users (one per role) and then used loginWP to define two redirection rules based on the user role. Then I created a popup login using elementor, login/signup popup and firebox. They all work (user logs in successfully), but no redirection applies. As I said, I am trying to learn something fooling around with xampp: the test framework is really simple, what am I doing wrong?
Hello @roberto21 , Sorry for the late reply. As mentioned, LoginWP should provide a way to set up a redirection URL when a form is submitted. If they do not provide such a way, assuming they provide a Javascript API, you can use it to redirect the user when they successfully submit the form. You can add your custom Javascript within the campaign > Advanced > Custom Code section. Regards, Stergos
Thanks for your answer. Unfortunately, I am not that advanced to use javascript, so since fraugefahr managed to make it work without javascript, I thought there was some mistake in my approach. I really don’t know why it doesn’t work, since the test setup is really simple. Hope that fraugefahr will clarify exactly what he has done to make it work. Thank you anyway.
I don’t know if anyone is interested, but I found the solution for redirection after login with popup login created with login/signup popup plugin. The solution is buried in the loginWP (Peter’s redirect) documentation. After you define the redirection rules with loginWP, you have to define the redirect url in login/signup popup plugin as https://yoursite.tld/?loginwp_link_redirect=true obviously replacing the yoursite.tld with your domain address.