Thanks for your patience once again.OK, this configurable option that you mentioned in your first post:
- Code: Select all
"login_redirect" => "%%previous%%",
This is designed to configure the s2Member Pro Login Widget, whether it be through your Dashboard, or through a PHP code snippet, as documented
here.
When you use
%%previous%%, it instructs s2Member to redirect a User/Member who logs into your site, specifically through the s2Member Pro Login Widget, to be immediately redirected
( after logging in ), to the page they were on previously
( i.e. the page where the Pro Login Widget appeared ).
If the Pro Login Widget appears in a Sidebar for your WordPress theme, that could be just about page on your site, which is what makes the
%%previous%% Replacement Code so powerful
( i.e. a Customer can be redirected back to the page there were attempting to view, which may have required an account to view ). There is one exception that s2Member treats differently though, and that is your Membership Options Page. If a Customer attempts to log into your site from your Membership Options Page, the
%%previous%% Replacement Code is ignored, and instead the Customer will be returned to your Login Welcome Page by default. This is the intended behavior, in this one special scenario, because returning a logged-in User to a set of Membership Options is not intuitive.
You've also said that...If i'm on this page, /wp-login.php and click the register link it re-directs to the home site's login page which gives an error message stating registration is turned off. This all worked before.
This is unrelated to the
%%previous%% Replacement Code. Is s2Member activated Network-wide on your installation? Or is it activated only on specific Blogs? In either case, is Open Registration enabled for all sites in your Network, or only for the Main Site?