Page 1 of 1

Redirect

PostPosted: July 18th, 2011, 5:57 am
by songoku1818
Hello,

I would like to ask how to redirect a user back to the login welcome page using the Special Redirection URL?

For example, if the user navigates away from the login page like visiting the about page or home or whatever page and decides to view it again, what would be done to achieve that?

Hope you understand.

Re: Redirect

PostPosted: July 18th, 2011, 11:55 pm
by Cristián Lávaque
He can only see the Login Welcome Page if he's logged in. If you don't remove this page from the navigation, it'll be there for him to go back there. If you're talking about the Login form, then you can add a link to it in your theme (/wp-login.php) or add a login widget. viewtopic.php?f=36&t=2781

Does that help?

Re: Redirect

PostPosted: July 19th, 2011, 1:45 am
by songoku1818
Yes, but what if there are multiple users and each have their own unique pages that contains their information and other user related datas?

When a user happens to navigate away from their login welcome page, they cannot see it anymore because there are no available link. I used the custom capability to assign a page for each user and those pages must not be seen by other users so I didnt put it on the menu. What I want is to have a menu link wherein it contains the URL of the welcome page for each users.

I hope that is clear.

Re: Redirect

PostPosted: July 19th, 2011, 11:15 pm
by Cristián Lávaque
It is more clear now that you explained what you did.

Well, for logged in users you could add to the navigation a link to his profile, it'd be a similar to the URL you used in Login Welcome Page redirection, but instead of the replacement code you could use an s2Member constant for the login name. WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants -> S2MEMBER_CURRENT_USER_LOGIN