Hi,
I am hoping to use s2Member to create a private clients area where they can view reports etc.
I have installed and configured the plugin following the videos etc however I have one problem which I am stumped on - unless I missed an important video!
My theme does not use an actual page for the homepage but it is customised from within the Wordpress admin panel from a theme settings section. I presume that this is writing certain variables into the index.php file. Due to this page being configured from the admin panel the reading settings in Wordpress are set to display the latest blog posts only.
Open registration has been turned on on the site and the login welcome page is set to send them to %%current_user_login%% as long as the page has been created therefore when a client logs in they will be directed automatically to their area.
All of this works fine at this point.....
I have a requirement that only the client logged in can see their page and that no-one else, logged in or not can see it.
I therefore configured the Require Custom Capabilities section on the page so that it matched the Custom Capabilities section on the user.
I then attempted to access this page whilst logged in as the user and could access it. I then logged in as a different user and could still access it. I then logged out and could still access it.
Therefore I tried to enforce the s2Member security restrictions and I had to configure a page within the Membership Options Page section. I have created a page called 'Restricted Content' so that if anyone tries to access a client area they are presented with this page.
The problem I have is that as soon as I configure the Membership Options Page and attempt to go to the homepage when not logged in I am redirected to the restricted content page.
Is there any thing I can do to resolve this so that only the logged in user can see this page and if you are logged in as a different user or not logged in at all you can't access it?
Thanks and regards,
Peter