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™

Is the login page seen based on mebership level possible?

s2Member Plugin. A Membership plugin for WordPress®.

Is the login page seen based on mebership level possible?

Postby MarkMBravura » November 15th, 2011, 7:27 pm

Hi,

At one point quite some time back, I though I had discovered a way to make it where L0's see one login page and L1's see another. I cannot for the life of me find that info now.

Is this in fact possible? If so, how would I go about it?

Many thanks in advance,

Mark
User avatar
MarkMBravura
Registered User
Registered User
 
Posts: 26
Joined: June 2, 2011

Re: Is the login page seen based on mebership level possible

Postby Bruce C » November 15th, 2011, 11:57 pm

Are you talking about showing different content on the same page, or actually different pages?

If you want to show different content on the same page based on level, you can use Shortcode Conditionals ( Dashboard->s2Member->API/Scripting->Simple/Shortcode Conditionals ).

Otherwise, if you're looking to show a different page for each level, you can set different URLs for the Login Welcome Page for each level using replacement codes under the dropdown in Dashboard->s2Member->General Options->Login Welcome Page.

Hope that helps!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Is the login page seen based on mebership level possible

Postby MarkMBravura » November 16th, 2011, 12:16 am

Hi Ace,

Thank you for your reply. I went to where you indicated under 'General options', and where you'd typically supply an external login page link, 'Replacement Codes' was hotlinked and said this on the popup...

For example, if you're using BuddyPress, and you want to redirect Members to their BuddyPress Profile page after logging in, you would setup a Special Redirection URL, like this: http://wpvoyage.com/members/%%current_user_login%%/profile/

Or ... using %%current_user_level%%, you could have a separate Login Welcome Page for each Membership Level that you plan to offer. BuddyPress not required.


It appears that is exactly what I need. My question though, is would each place marker be comma-delimited (i.e. url1,url2)?

Your help is greatly appreciated!

Best regards,

Mark
User avatar
MarkMBravura
Registered User
Registered User
 
Posts: 26
Joined: June 2, 2011

Re: Is the login page seen based on mebership level possible

Postby Bruce C » November 16th, 2011, 12:24 am

Hi again Mark,

You're only supposed to input 1 URL into the field. You can use the replacement code %%current_user_level%% to allow the URL the user is directed to to be the correct page for the user.

So it would be like this:

If you put in http://yoursite.com/login-welcome-page-%%current_user_level%%, then the login welcome page for a level 1 user would be http://yoursite.com/login-welcome-page-1.

What you will have to do is create pages with different slugs based on your settings in that field. So you would create any number of Login Welcome Pages based on how many levels you have.

Hope that helps!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Is the login page seen based on mebership level possible

Postby MarkMBravura » November 16th, 2011, 12:31 am

Hi Ace,

Very cool... so in effect the replacement code acts as a type of wild card in conjunction with the slug. I truly appreciate this and now am off to test it out.

Best regards,

Mark
User avatar
MarkMBravura
Registered User
Registered User
 
Posts: 26
Joined: June 2, 2011

Re: Is the login page seen based on mebership level possible

Postby MarkMBravura » November 16th, 2011, 1:03 am

You da Man, Ace!

Worked flawlessly with two separate penny tests done with two separate WP L0 users.

Thanks again,

Mark
User avatar
MarkMBravura
Registered User
Registered User
 
Posts: 26
Joined: June 2, 2011

Re: Is the login page seen based on mebership level possible

Postby Cristián Lávaque » November 17th, 2011, 11:36 am

That's one popular solution.

I personally prefer to have a single page and use conditionals to show different content in it. Keeps everything in one place. Just mentioning it so you know there's that option. :)
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: Is the login page seen based on mebership level possible

Postby MarkMBravura » November 17th, 2011, 4:35 pm

Thanks Christian,

I did consider the possibility, however for this purpose two pages is optimal.

Best regards,

Mark
User avatar
MarkMBravura
Registered User
Registered User
 
Posts: 26
Joined: June 2, 2011

Re: Is the login page seen based on mebership level possible

Postby Cristián Lávaque » November 21st, 2011, 1:10 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: Exabot [Bot] and 0 guests

cron