latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Redirection after login

Home Forums Community Forum Redirection after login

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 7 months ago.

Topic Author Topic
Posted: Saturday May 25th, 2013 at 4:55 am #50622

Please forgive me I am very new at this. I have the logic but not too sure of the syntax and where or how to apply it.

Logic.

If first time login goto first time login page
else
if level 0 goto level 0 page
else
if level 1 goto level 1 page
else
if level >=2 goto level 2 page
else
goto welcome page.

I have tried putting the code in the welcome page but it does not do anything.

Please help. I am new at this and I am tearing what little hair I have left out.

Thank you.

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Saturday May 25th, 2013 at 8:47 pm #50641

Well, you could do all those in a single page, the one you set as the Login Welcome Page. With some conditions, you’d show one content or the other.

See:
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants -> S2MEMBER_CURRENT_USER_LOGIN_COUNTER[/hilite]

Posted: Saturday May 25th, 2013 at 9:52 pm #50646

Thank you. Sorry need to get my head around displaying content on the one page. Will look up the references and revert should I require further assistance.

Posted: Sunday May 26th, 2013 at 6:01 pm #50676

Yes, the documentation explains it, but here’s a set of conditions to help you based on what you said earlier.

[hilite pre_code]

first time login

level 0

level 1

level >=2

welcome page

[/hilite]
Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.