Page 1 of 1

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

PostPosted: May 13th, 2011, 12:36 am
by alerttopia
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.

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

PostPosted: May 13th, 2011, 12:43 am
by Cristián Lávaque
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. :)

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

PostPosted: May 13th, 2011, 1:04 am
by alerttopia
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?

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

PostPosted: May 13th, 2011, 1:15 am
by Cristián Lávaque
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. :)

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

PostPosted: May 24th, 2011, 11:29 pm
by alerttopia
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.

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

PostPosted: May 25th, 2011, 12:14 am
by Cristián Lávaque
Cool. :)