[pro verson] Custom page for non members
Posted:
September 20th, 2011, 5:16 pm
by bluej
Hi
When a non-member clicks on a teaser to a member-only item, they go to the Membership signup page.
I want to set up a custom landing page instead. How can I do this?
Thanks
Re: [pro verson] Custom page for non members
Posted:
September 20th, 2011, 6:04 pm
by Cristián Lávaque
Well, you can customize the Membership Options Page with the variables s2Member adds at the end of its URL when it redirects the users.
WP Admin -> s2Member -> API / Scripting -> Membership Options Page Variables You can either customize the page or create a JS redirection to a another page based on a condition that checks the MOP vars.
http://www.s2member.com/advanced-conditionals-video/I hope that helps.
Re: [pro verson] Custom page for non members
Posted:
September 20th, 2011, 6:14 pm
by bluej
Christian
Thank you for the help.
I did watch the video. I put a re-direct in the membership options page after testing if the user could access level 0.
But I got an endless re-direct to the landing page. I couldn't then refer the user back to the membership page to log in.
I have no idea what to test for to avoid this problem.
DO you have any code I can cut and paste?
Re: [pro verson] Custom page for non members
Posted:
September 20th, 2011, 6:33 pm
by bluej
Hey Christian
Thanks for pointing out the variables added at the end of the URL when redirecting users! That was the key to easily funneling the visits to a landing page, and then sending them to the membership options page with a plain url and no endless loop.
I just used a simple re-direct plugin to take
http://example.com/membership-options-2 ... evel_req=0 and pass it to a landing page
http://example.com/join-for-that-info/the link in the landing page just goes to
http://example.com/membership-options-2 which doesn't re-direct them.
Thanks again.