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™

Login Welcome Page -> Level #0 protection - why?

s2Member Plugin. A Membership plugin for WordPress®.

Login Welcome Page -> Level #0 protection - why?

Postby alerttopia » May 13th, 2011, 12:36 am

Maybe I am not understanding this all to well, so please stay with me on this one.

I set up s2member pro to have a Login Welcome Page as required. "Open Registration/Free Subscribers" is set to "NO". I had a user that was originally a "s2 member Level 1", I demoted that user to WordPress "Subscriber" level. When I log on as this user with the level of "subscriber", I am still able to view the "Login Welcome Page".

So I went in as the administrator and looked at the "Login Welcome Page" itself and the lock icon in the (s2) column in the Pages view shows "Requires Membership Level #0" when hovering over it. The page itself shows that this page is automatically protected by s2member.

My question is, since Level #0 is for "free subscribers", wouldn't it make more sense to protect the "Login Welcome Page" with a Level #1, so only paying users see the member welcome page?

What am I missing?

My ultimate goal is to disallow access to member sites if the user is not on a s2member level.
User avatar
alerttopia
Registered User
Registered User
 
Posts: 16
Joined: January 5, 2011

Re: Login Welcome Page -> Level #0 protection - why?

Postby Cristián Lávaque » May 13th, 2011, 12:43 am

Actually the Login Welcome Page is to welcome users right after login, which includes free users, anyone with an account.

You can customize this page with content that'll be different depending on the level of the user, using conditionals. WP Admin -> s2Member -> API / Scripting -> Using Simple Conditionals

Also, you can use the redirection URL with the level shortcode to use different login welcome pages depending on the level of the user. WP Admin -> s2Member -> General Options -> Login Welcome Page

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: Login Welcome Page -> Level #0 protection - why?

Postby alerttopia » May 13th, 2011, 1:04 am

I am a bit unclear on how to use the redirection URL with the member ship levels. Do you happen to have an example? Do I need to create multiple pages and how would I reference them?
User avatar
alerttopia
Registered User
Registered User
 
Posts: 16
Joined: January 5, 2011

Re: Login Welcome Page -> Level #0 protection - why?

Postby Cristián Lávaque » May 13th, 2011, 1:15 am

Yeah, you'd create a welcome page for each level and protect them with the right level restriction for each, for example:

http://example.com/welcome-level-0
http://example.com/welcome-level-1

Then the redirection URL for the Login welcome Page would be

Code: Select all
http://example.com/welcome-level-%%current_user_level%%


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: Login Welcome Page -> Level #0 protection - why?

Postby alerttopia » May 24th, 2011, 11:29 pm

Thank you Cristian. It does help, yet I am still a bit confused as to why I couldn't assign a specific level to the "landing" page. This work-around does the trick however.
User avatar
alerttopia
Registered User
Registered User
 
Posts: 16
Joined: January 5, 2011

Re: Login Welcome Page -> Level #0 protection - why?

Postby Cristián Lávaque » May 25th, 2011, 12:14 am

Cool. :)
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: Yahoo [Bot] and 1 guest

cron