PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

[pro verson] Custom page for non members

s2Member Plugin. A Membership plugin for WordPress®.

[pro verson] Custom page for non members

Postby bluej » September 20th, 2011, 5:16 pm

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
User avatar
bluej
Registered User
Registered User
 
Posts: 19
Joined: August 3, 2011

Re: [pro verson] Custom page for non members

Postby Cristián Lávaque » September 20th, 2011, 6:04 pm

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: [pro verson] Custom page for non members

Postby bluej » September 20th, 2011, 6:14 pm

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?
User avatar
bluej
Registered User
Registered User
 
Posts: 19
Joined: August 3, 2011

Re: [pro verson] Custom page for non members

Postby bluej » September 20th, 2011, 6:33 pm

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.
User avatar
bluej
Registered User
Registered User
 
Posts: 19
Joined: August 3, 2011

Re: [pro verson] Custom page for non members

Postby Cristián Lávaque » September 26th, 2011, 12:13 am

That's great! Well done. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron