Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-12T22:51:52-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6412 2011-05-12T22:51:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6412&p=14799#p14799 <![CDATA[Re: Having a problem with the most simple scenario]]>

Statistics: Posted by Cristián Lávaque — May 12th, 2011, 10:51 pm


]]>
2011-05-12T22:43:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6412&p=14798#p14798 <![CDATA[Re: Having a problem with the most simple scenario]]> Statistics: Posted by BobTabor — May 12th, 2011, 10:43 pm


]]>
2011-05-12T22:36:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6412&p=14796#p14796 <![CDATA[Re: Having a problem with the most simple scenario]]>

Try adding this line to your /wp-config.php file.

Code:
define('LOCALHOST', true);  


s2Member has a special routine, which we refer to as the Systematics Routine. It sees your IP address is the same as the server's IP; which is sometimes an issue on a WAMP/MAMP installation. It's fine so long as your domain is http://localhost/. However, if it's something other than that, you'll need to add that line in your /wp-config.php file so s2Member realizes it's running on a localhost installation.

Let me know if that helps.

Statistics: Posted by Cristián Lávaque — May 12th, 2011, 10:36 pm


]]>
2011-05-12T17:18:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6412&p=14768#p14768 <![CDATA[Having a problem with the most simple scenario]]>
In a nutshell ... I've tried 4 times today to get a simple scenario to work. However, no matter what I try, I can't get a protected page to redirect the visitor to the Membership Options page. Additionally, the user is able to just see the entire protected page.

I've recorded a screencast video demonstrating everything from setting up the web server locally to installing WordPress, s2Member, Pro and configuring the pages. It's less than 8 minutes long.

http://dl.dropbox.com/u/693501/Problem.zip

But here's the places in the video that are probably most interesting:

@ 2:00 -- Clean WordPress Install complete ... starting basic configuration
@ 2:40 -- s2Member Install
@ 3:10 -- Adding s2Member Pro
@ 3:30 -- Adding wp-Show-IDs
@ 3:50 -- Add the 2 required pages (Membership Options and Login Welcome)
@ 4:25 -- Created the page I want protected
@ 4:50 -- Setting the General Options for the 'Login Welcome Page' and 'Membership Options Page'
@ 5:10 -- Setting the 'Page Access Restrictions' 'Pages That Require Level #1 Or Higher" to 'all'
@ 5:20 -- Opening a new browser to test (using Safari, completely reset to avoid cache, cookies, etc. ... I was using Firefox for evey thing up until now)
@ 5:35 -- Protect page NOT PROTECTED!
@ 5:45 -- Verifying protection in the Pages list. Looks protected!
@ 6:05 -- Attempting to use 'URI Restrictions' with 'Level 1 or Higher' set to: /
@ 6:50 -- Verifying protection in the Page itself ... again, looks protected!
@ 7:00 -- Last ditch effort ... to add a bunch of lorem ipsum, and wrap it with [s2If current_user_can(access_s2member_level1)] ... no dice.

So, you can see that I put a lot of effort into this because ... I'm spent. I don't know what I'm missing here, but whatever it is I keep repeating the same mistake. Please help!
Thanks
Bob

Statistics: Posted by BobTabor — May 12th, 2011, 5:18 pm


]]>