Trouble configuring login and member options pages
Posted: June 23rd, 2011, 4:39 am
I'm using s2member to protect a single parent page called "Gallery" and a dozen child pages. Visitors can NOT register, they all use the same login called "guest" to access the private area (hi-res image galleries for potential clients only). So just to be clear, no registration, no payment, just fancy password protection.
So.. I created a page called "Login" which is nothing but a standard page with a shortcode the calls the sidebar login plugin's template tag, this makes it easy to customize what shows up before/after the login widget.
In s2Member > General Options > Membership Options Page I set the "Membership Options Page" to this login page. This works fine, when someone tries to access the restricted area the are prompted to login.
In s2Member > General Options > Login Welcome Page I set the "Login Welcome Page" to the protected "Gallery" page, this wasn't working until I figured out that the sidebar login plugin was controlling the redirect here, once I set the redirect in the plugin nearly everything is working great...
Now I just have one remaining problem. When a guest logs out (via the WP3.1 admin menu) they get redirected to the WordPress standard login window… yuk, this is what I'm trying to hide. Does s2m have an option I'm missing to set a page to redirect s2member defined user to? I want logged out guests to go back to the custom login page, not the default wordpress login page.
So.. I created a page called "Login" which is nothing but a standard page with a shortcode the calls the sidebar login plugin's template tag, this makes it easy to customize what shows up before/after the login widget.
In s2Member > General Options > Membership Options Page I set the "Membership Options Page" to this login page. This works fine, when someone tries to access the restricted area the are prompted to login.
In s2Member > General Options > Login Welcome Page I set the "Login Welcome Page" to the protected "Gallery" page, this wasn't working until I figured out that the sidebar login plugin was controlling the redirect here, once I set the redirect in the plugin nearly everything is working great...
Now I just have one remaining problem. When a guest logs out (via the WP3.1 admin menu) they get redirected to the WordPress standard login window… yuk, this is what I'm trying to hide. Does s2m have an option I'm missing to set a page to redirect s2member defined user to? I want logged out guests to go back to the custom login page, not the default wordpress login page.