Redirect after Email activation – UserPro Forums https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/feed/ Mon, 06 May 2024 09:09:43 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45920 <![CDATA[Redirect after Email activation]]> https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45920 Sun, 08 Feb 2015 08:13:46 +0000 mahendharreddy Hello.

When logging in from the login page, the login_redirect shortcode works. But, after clicking on the email activation link and logging in, it redirects to “My profile” page. How do I change this?

I have tried custom redirects too, but no success.

Kindly help me with this issue.

]]>
https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45923 <![CDATA[Reply To: Redirect after Email activation]]> https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45923 Mon, 09 Feb 2015 11:27:58 +0000 mahendharreddy Hello.
Can the support kindly assist me in this issue

]]>
https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45957 <![CDATA[Reply To: Redirect after Email activation]]> https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45957 Wed, 11 Feb 2015 12:25:15 +0000 mahendharreddy Hello.
Can the support kindly guide me on this issue. It’s been 2 days

]]>
https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45963 <![CDATA[Reply To: Redirect after Email activation]]> https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45963 Wed, 11 Feb 2015 17:44:32 +0000 rickymcg I posted a similar topic – no response. I’ve also emailed support. Received auto response and no follow up.

Trying everything I can to resolve this issue… including other plugins. No resolution.

May resort to customizing the .htaccess file somehow. Will let you know if I come up with a solution.

]]>
https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45965 <![CDATA[Reply To: Redirect after Email activation]]> https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45965 Wed, 11 Feb 2015 19:53:03 +0000 rickymcg I’VE SOLVED THIS!

WHAT’S GOING ON:

The EMAIL ACTIVATION LINK sends the user to the home page, with a long query string including a key.

Once that link is activated, the user is created, and the resulting page is the UserPro PROFILE page (no matter what redirect settings we put in place via shortcodes or the UserPro admin).

Since they’re not yet logged in, they’re shown a login form. It’s THIS login form that seems to ignore any settings in UserPro for page redirection.

However, the Profile page contains a query string: ***/profile/?accountconfirmed=true (where “***” is your site root).

All we need to do is redirect that URL to the ACTUAL login page.

THE (ALMOST) PAINLESS WORKAROUND:

First: I’ve setup the shortcode redirects for login and registration to their corresponding pages (even though register_redirect doesn’t seem to do anything if you’re using the email activation link).

Second: I installed this plugin: Redirection by John Godley. This is a simple plugin to manage 301 redirects and monitor 404 errors.

Third: I set a 301 redirect to trap the URL: ***/profile/?accountconfirmed=true and redirect it to the ACTUAL login page, along with the query string ?accountconfirmed=true

I was prepared to code up some PHP to display an “Activation Successful” message above the Login form BUT … the form already traps for it and displays the message! Yes!

Problem solved.

Hope that helps. 🙂

]]>
https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45980 <![CDATA[Reply To: Redirect after Email activation]]> https://forum.userproplugin.com/forums/topic/redirect-after-email-activation/#post-45980 Thu, 12 Feb 2015 10:48:34 +0000 mahendharreddy @rickymcg

Many thanks for the solution.

You have found a very easy workaround.

]]>