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™

Redirect

s2Member Plugin. A Membership plugin for WordPress®.

Redirect

Postby songoku1818 » July 18th, 2011, 5:57 am

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.
User avatar
songoku1818
Registered User
Registered User
 
Posts: 2
Joined: July 18, 2011

Re: Redirect

Postby Cristián Lávaque » July 18th, 2011, 11:55 pm

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?
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: Redirect

Postby songoku1818 » July 19th, 2011, 1:45 am

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.
User avatar
songoku1818
Registered User
Registered User
 
Posts: 2
Joined: July 18, 2011

Re: Redirect

Postby Cristián Lávaque » July 19th, 2011, 11:15 pm

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
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: Google [Bot] and 0 guests

cron