Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Post-registration redirect
Tagged: automatic login redirect
- This topic has 27 replies, 11 voices, and was last updated 10 years, 3 months ago by wzp.
-
AuthorPosts
-
June 7, 2011 at 1:04 am #19304amin007Participant
I think you might like the following tweak.
Please open “wp_eMember1.php” file and find the following line of code:
define('WP_EMEMBER_ENABLE_AUTO_LOGIN_AFTER_REGO', false);
Once you find it change it to the following:
define('WP_EMEMBER_ENABLE_AUTO_LOGIN_AFTER_REGO', true);
This will make it to where the user gets automatically logged in after the registration is complete. This will trigger the “after login redirection” event and take them to the welcome page that you set in the “after login” redirection page settings.
July 29, 2011 at 5:49 am #19305wolfszMemberCool, just what I was looking for.
Wolf
February 20, 2013 at 4:18 am #19306mische7MemberHi there. I was doing some research regarding this topic. I’m using eMember Version v8.5.6.
I want to have a user sent to a page called ‘hold-please’ after they’ve filled out the registration form on my site. This new page tells them how long it may take to activate their account and what to expect. Instead, what’s happening is that they’re returned to the ‘join-us’ page.
I have the redirect link set in the ‘After Registration Page’ area of the pages/forms admin tool but it’s not responding to that. I’d sure love your help.
thx.
February 20, 2013 at 11:48 pm #19307wpCommerceModeratorHi, what do you see when you click on the “Register” button? Does it give you any error message or any other message? Can you please share the link to your “Member Registration” page?
February 22, 2013 at 4:55 am #19308mische7Memberoh right. so sorry. here’s the link to the page: [http://mische7.fatcow.com/ws/join-us/registration/]
I’m on a laptop so if there’s anything happening other than seeing the button change (like it’s processing the request) I can’t see it.
This is the page I want it to take the person to after they’ve hit the ‘register’ button. I just don’t want them scratching their heads wondering what’s next.
[http://mische7.fatcow.com/ws/hold/]
Also, I have this url in the site-wide lock-down exception area in the settings so anyone should be able to get to it.
And I also have it set in the “After Registration Page” area.
February 22, 2013 at 10:54 pm #19309wpCommerceModeratorHi, usually after the “Register” button is clicked the user sees the following message (on the same page):
Registration Complete! Please Login
In your case it’s actually redirecting the user to the following page:
[http://mische7.fatcow.com/ws/join-us/]
Do you have this page set up for any kind of automatic redirection in the eMember settings?
I would recommend you to double check the value of the “After Registration Page” field. You are certain that you have the following value in that field?
[http://mische7.fatcow.com/ws/hold/]
Can you please enable debug in the eMember plugin so I can get more details of the operations the plugin is performing.
February 23, 2013 at 4:18 am #19310mische7MemberDone – I just enabled the debug feature. (and yes, with the After Registration Page setting’ – it’s set to the hold page but the setting is being ignored.) I really appreciate your help.
February 24, 2013 at 11:40 pm #19311mische7MemberHi again. Just checking back in about this.
I’m wondering if the issue that’s creating this has to do with the Site-wide domain lockdown area. I have the site set up for site-wide lockdown and have the ‘Join Us’ page set as the one to land on if a person tries to access a locked page. I have the ‘hold page’ [http://mische7.fatcow.com/ws/hold/] listed in the 1st box of that admin section – the “URLs that will be excluded from the lockdown”.
To test this, I’ve logged out of the site and put [http://mische7.fatcow.com/ws/hold/] directly in the browser expecting to reach the page since it’s excluded from the lockdown. However, I’m being redirected to the Join-us page so it seems the tool is ignoring my request to allow anonymous users to access the hold page.
I did turn on the debugging tool so I hope that helps when you have a chance to take a look.
February 25, 2013 at 1:13 am #19312adminKeymasterI want to take a look at the various eMember plugin settings of your site. I sent you an email to get access to the site so I can check it out.
February 27, 2013 at 7:32 pm #19313mische7MemberHi there. I sent a response to an email about my ftp site yesterday morning but I haven’t heard anything. I’m wondering if someone might give me an update on what’s happening. I need to make some changes to the site set up but I’m waiting until we’ve resolved this mystery.
thanks.
February 28, 2013 at 12:16 am #19314adminKeymaster@mische7, Turned out that you enabled the “Site-wide Lockdown” feature and specified an auto-redirect on that page using the “Auto Redirect to a Specific Page” field setting of eMember.
So the plugin was correctly redirecting the user to the specified page when someone went to your hold page! I have removed that auto redirect that you set in the settings and now it isn’t redirecting to the wrong page anymore.
August 15, 2014 at 12:03 pm #19315fishnetadMemberHi, Firstly … GREAT plugin.
Secondly, my issue … My site offers online sport coaching. A member uploads a video of themselves (eg batting) and depending on their subscription/membership level their video is analyzed by a certain level of coaching staff. An analysis report is then created and uploaded to the member’s page. So every page created is member specific and not subscription level specific. I’m looking to automate the registration process as much as possible. Currently when a user registers and makes payment we manually create a page called “www.domain.com/report_user_id_5” or whatever user ID they are. Then in the members profile page we manually add the redirect link to that page created for that member. (A whole lot of time and effort)
My question … is there a way to create a generic URL link that we can add to the general redirect link for all users. We’ll still create the Member’s Report Page manually eg. “www.domain.com/report_user_id_5” but then the link in the admin will be something like http://www.domain.com/report_user_%5Bwp_eMember_id%5D so that depending on what member logs in their ID is appended to the link and then redirects them to their page. Hope this makes sense ….
Thanks in advance …
Sebastian
August 15, 2014 at 3:41 pm #19316wzpModeratorYou can use the information returned from either a PHP function or shortcode, to construct your generic URL:
That would allow you to construct your URL, based on the currently logged in member. But for the admin, you would want to retrieve the information for specific users, based on their user ID:
-
AuthorPosts
- You must be logged in to reply to this topic.