Community Support Forums — WordPress® ( Users Helping Users ) — 2012-02-03T04:17:53-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2717 2012-02-03T04:17:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=62246#p62246 <![CDATA[Re: s2Member Pro / login redirect to originating page]]>
oli4uk wrote:
I am having the same problem, when somebody registers/logs in I want to return them to the page that they signed up through.


You could customize this using the Membership Options Page variables, if you're using a restriction that sends them to that page to sign up for access. WP Admin -> s2Member -> API / Scripting -> Membership Options Page Variables

If you're using conditionals in the page to either show the content or sell them the access to it, then you already have the address of the page right there to work with.

You'd have to save the page somewhere, like a cookie, to use it later after checkout and registration, redirecting them there.

I can't code this for you or go into more detail, but a developer should be able to help you achieve it. There are good freelancers in sites like oDesk.com or eLance.com.

I hope that helps!

Statistics: Posted by Cristián Lávaque — February 3rd, 2012, 4:17 am


]]>
2012-02-02T18:52:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=62198#p62198 <![CDATA[Re: s2Member Pro / login redirect to originating page]]> Statistics: Posted by bglclub — February 2nd, 2012, 6:52 pm


]]>
2012-02-02T12:25:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=62155#p62155 <![CDATA[Re: s2Member Pro / login redirect to originating page]]>
Cristián Lávaque wrote:
You can point the person to the login page with the redirection value at the end, like http://example.com/wp-login.php?redirect_to=/theprotectedpage

I hope that helps.


Can you explain this code a little more, how it works and where to place it? Or is this topic covered in a different thread?

Thanks.

Statistics: Posted by referee — February 2nd, 2012, 12:25 pm


]]>
2011-10-15T22:15:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=46915#p46915 <![CDATA[Re: s2Member Pro / login redirect to originating page]]>
That way it goes

User finds product
User Registers/Logs In
User Purchases Product
User Downloads Product.

I want them to be able to do this without having to re-find the page they were on previously.

Is this impossible, insanely difficult, or am I just missing something? :P

Statistics: Posted by oli4uk — October 15th, 2011, 10:15 pm


]]>
2011-06-14T18:57:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=20741#p20741 <![CDATA[Re: s2Member Pro / login redirect to originating page]]> WP Admin -> Widgets -> Pro Login Widget

Now, if you the person tries to load a Level 1 page while not logged in, he gets sent to the Membership Options Page, there he logs in, the Pro Login Widget will return him to the page he logged in from: the Membership Options Page. So that doesn't work well.

That's why I pointed you to the Membership Options Page Variables, because they tell you what the person tried to view that got him sent to the Membership Options Page. You can use these variables to create a redirection URL to send the person to after login.

You can point the person to the login page with the redirection value at the end, like http://example.com/wp-login.php?redirect_to=/theprotectedpage

I hope that helps.

Statistics: Posted by Cristián Lávaque — June 14th, 2011, 6:57 pm


]]>
2011-06-14T15:27:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=20722#p20722 <![CDATA[Re: s2Member Pro / login redirect to originating page]]> Thank you for your reply.
I'm still kind of lost.
Allow me to clarify: I'm only operating with one s2member level (... level 1). My aim is to have logged in member return to the orignating page/ the page where they logged in to access a level 1 page. The default is to direct logged in members to the homepage, which is not so userfriendly, forcing users to refind the page they tried to login to. I hope i'm making myself clear.
I'm thinking, surely there has to be a standard code to accomodate this?
Hope you can help.
Thank you,
Allan

Statistics: Posted by Allan_2011 — June 14th, 2011, 3:27 pm


]]>
2011-03-17T12:00:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=7946#p7946 <![CDATA[Re: s2Member Pro / login redirect to originating page]]>
Perhaps the Membership Options Page Variables could help you with this. Read about them here WP Admin -> s2Member -> API / Scripting -> Membership Options Page Variables.

Statistics: Posted by Cristián Lávaque — March 17th, 2011, 12:00 pm


]]>
2011-03-17T04:59:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2717&p=7940#p7940 <![CDATA[s2Member Pro / login redirect to originating page]]> I would like a smoother user experience for our site members when they login. At the moment after logging in, you are redirected to a preset page, f.ex. "Home" (s2Member admin setting).
What I would like is that when you login into a certain page, that in this case is membership restricted, other pages are "open access", you will, after logging in, return to the page you came from, (originating page).
Can this be done?
Have had no luck so fare in finding info on this.

Any help solving this is much appriciated.
Thanks,
Allan ( s2Member Pro newbie )

Statistics: Posted by Allan_2011 — March 17th, 2011, 4:59 am


]]>