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 page and ... login page

s2Member Plugin. A Membership plugin for WordPress®.

Login page and ... login page

Postby cassel » April 3rd, 2011, 4:58 pm

I am not sure where i am missing, but obviously, i skipped something.

Following the instructions, i created a login page (as in the video) to set as the Login Welcome Page, and then there is a Login page to enter the username and password. Now, i figured that the Login Welcome Page is only a landing page, like an intro to the protected content (took me a while to figure it out, duh!).

Now, my question is this: if i have different pages sold in different packages, or different membership levels, do they all share the same Login Welcome Page? Then, (as stupid as it may sound), what is the Login Welcome Page supposed to look like? any sample anyone can show me (even if only in screenshots, obviously)?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login page and ... login page

Postby Cristián Lávaque » April 3rd, 2011, 8:29 pm

Yeah, you got it right. :)

The Login Page is the one which has the form to login to the account, although there may be other login forms in different places of the website using widgets and such.

The Login Welcome Page is the one the person is shown right after a successful login. This page can be modified with variables that are available to you in the optional Special Redirection URL for this. The variables would allow you to use different pages depending on the level of the member that logged in, for example.

The page can be anything you consider a good thing to welcome the member that just came back. :)
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 page and ... login page

Postby cassel » April 3rd, 2011, 8:40 pm

Thanks. Is there a reference somewhere to help in the Special Redirection URL thingie? (i am a total newbie in a lot of those things, so a reference point is always helpful)
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login page and ... login page

Postby Cristián Lávaque » April 3rd, 2011, 10:51 pm

Sure! Sorry for missing that in the other post.

Go to WP Admin -> s2Member -> General Options -> Login Welcome Page -> Special Redirection URL -> Replacement Codes.

Replacement Codes:

%%current_user_login%% = The current User's login ( their Username, lowercase ).
%%current_user_id%% = The current User's ID.
%%current_user_level%% = The current User's s2Member Level.
%%current_user_role%% = The current User's WordPress® Role.
%%current_user_ccaps%% = The current User's Custom Capabilities.

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://yoursite.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.
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 page and ... login page

Postby cassel » April 4th, 2011, 5:03 am

Can i sound even blonder than that? Using the example you copied, i am just unsure where i should put my own URL.
http://yoursite.com/members/%%current_user_login%%/profile/

i am just not sure how to incorporate the replacement code into a URL i have. For example, if i have a Welcome Login Page that is:
http://my site/first_protected_section/welcome_loging_page where do i insert the replacement code?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login page and ... login page

Postby Cristián Lávaque » April 4th, 2011, 4:01 pm

Based on what is the login welcome page going to change?

If it's based on level, the your Special Redirection URL could be, for example:

http://yoursite.com/members/welcome-%%current_user_level%%


Then you'd create these pages, one for each member level you're using in your membership:

http://yoursite.com/members/welcome-0
http://yoursite.com/members/welcome-1
http://yoursite.com/members/welcome-2


And protect each with the corresponding access level, using s2Member's meta box in the edit form when you create the pages.
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 page and ... login page

Postby cassel » April 4th, 2011, 6:35 pm

Ok, i am getting there, dont despair!

So if the membership level determines the landing page for the Welcome page, i have to add:
... /members/welcome-%%current_user_level%% ? (is the "member" part necessary or just an example?)

So yeah, i can see to create the different Welcome pages.

Now, *IF* i sell some custom packages, as explained in the video (which i WILL have to re-study), what replacement code would be used?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login page and ... login page

Postby Cristián Lávaque » April 4th, 2011, 8:07 pm

I just used the members directory following the example you gave earlier. You can also have the pages like this:

http://yoursite.com/welcome-0
http://yoursite.com/welcome-1
http://yoursite.com/welcome-2


You can also use something else instead of "welcome-1", like "level1-home" or whatever you planned to use.

I just used those URLs as an example to show that you can use the level number to change the welcome page for each level.

cassel wrote:Now, *IF* i sell some custom packages, as explained in the video (which i WILL have to re-study), what replacement code would be used?


Which video are you referring to? What do you mean by custom packages? I just want to make sure I understand your question properly before answering it. :)
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 page and ... login page

Postby cassel » April 4th, 2011, 8:15 pm

I am refering to the Advanced Conditional video from Jason, if i am not mistaken.

And the question about the "member", it is in this URL:
http://yoursite.com/members/welcome-%%current_user_level%%
which was taken from the documentation on how to use the replacement code.
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Login page and ... login page

Postby Cristián Lávaque » April 4th, 2011, 10:36 pm

I see. It was just an example, you can use the page name you want. :)

I watched the Advanced Conditionals video again, but didn't see what you mention. Could you give me the URL to the video you mean and, if possible, tell me around what time of the video is what you want?

Thank you! :)
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: No registered users and 3 guests

cron