Creating Custom Login Welcome Page

Just wanted to confirm - If I want to create a Custom Login Welcome Page, for a level one member, the page I create has to be titled:

http://www.example.com/1-account-page

With the main login welcome page as:

http://www.example.com/%%current_user_login%%-account-page

Is this correct?

Is there any way to customize this?

Thanks.

For the level number you’d use the %%current_user_level%% replacement code.

And if you do that, remember you’ll need to create a login welcome page for each level you have, e.g.:

http://www.example.com/1-account-page
http://www.example.com/2-account-page
http://www.example.com/3-account-page

:slight_smile:

So I just want to make sure I understand you correctly on both questions.

  1. The login welcome page for each level needs to be titled either

/1-account-page
/2-account-page
/3-account-page

I can’t customize this to something like

/1-member
/2-member
/3-member…For example?

  1. Also - when you say “For the level number you’d use the %%current_user_level%% replacement code.”

Do you mean in the s2member login plugin, for the welcome page I have to set it up like this?

http://qualityatbatsacademy.com/%%current_user_level%%

Is this correct?

Thanks.

Where you put %%current_user_level%% in the URL, s2Member will replace it with that user’s level. So if the user has level 1, %%current_user_level%% will be replaced with a 1, if level 2 with a 2, etc.

That’s why you need to create different versions of the page, because if you only create one for level 1, when a level 0 logs in, he’ll be redirected to the URL with a 0 there, and if the page doesn’t exist the person will get a 404 page not found…

I can’t customize this to something like

You can make the page’s name anything you want, just remember the number thing. In the page’s slug you’d use the number, the replacement code %%current_user_level%% is used in the s2Member Login Welcome Page redirection URL only.

I hope that helps understand it better. :slight_smile:

Sorry. I’m still confused.

So for my site in the s2member login welcome page…it needs to be this? This is correct?

http://qualityatbatsacademy.com/%%current_user_level%%

And as for the level login redirect page, I can list the pages like this?

Level 1
http://qualityatbatsacademy.com/1-member

Level 2
http://qualityatbatsacademy.com/2-member

Level 3
http://qualityatbatsacademy.com/3-member

Almost, but not exactly…

http://qualityatbatsacademy.com/%%current_user_level%%

will redirect to

http://qualityatbatsacademy.com/1

not
http://qualityatbatsacademy.com/1-member

There’s no “-member” at the end of http://qualityatbatsacademy.com/%%current_user_level%%

If you want to it redirect to the one with “-member” at the end, then the redirection URL should be

http://qualityatbatsacademy.com/%%current_user_level%%-member

You basically take the redirection URL, replace the replacement code with its value, and you get the URL that will be used…

So in http://qualityatbatsacademy.com/%%current_user_level%% you replace with the level number (e.g. 1), and you get http://qualityatbatsacademy.com/1

:slight_smile:

Okay thanks so much. I think I understand! Appreciate your help.

This is how I have it set up:

Redirect page:

http://qualityatbatsacademy.com/%%current_user_level%%-member

Level 1 Member Login Page:
https://qualityatbatsacademy.com/1-member/

Level 3 Member Login Page:
https://qualityatbatsacademy.com/3-member/

This is how it’s set up now. Is this correct?

1 Like

Very good! :smiley:

Remember to create a page for level 0 too. And if you use level 2, one for that as well.

Thank you very much Cristian :slight_smile:

1 Like