Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-17T03:19:03-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14392 2011-08-17T03:19:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=32103#p32103 <![CDATA[Re: restrictions not working at all :(]]>

Statistics: Posted by Cristián Lávaque — August 17th, 2011, 3:19 am


]]>
2011-08-16T15:06:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=32059#p32059 <![CDATA[Re: restrictions not working at all :(]]> Statistics: Posted by Paulo — August 16th, 2011, 3:06 pm


]]>
2011-08-11T12:34:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30501#p30501 <![CDATA[Re: restrictions not working at all :(]]>
By the way, regarding the local server, here's a tip that may help:

Jason Caldwell wrote:
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.


I hope that helps.

Statistics: Posted by Cristián Lávaque — August 11th, 2011, 12:34 pm


]]>
2011-08-11T12:09:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30498#p30498 <![CDATA[Re: restrictions not working at all :(]]>
Thanks again for your help.

Statistics: Posted by Paulo — August 11th, 2011, 12:09 pm


]]>
2011-08-10T13:40:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30407#p30407 <![CDATA[Re: restrictions not working at all :(]]>
Could you create a test account at Level 0 (subscriber) and give me the login details? Also the URL to a post restricted at Level 1 and another at Level 2, please.

Statistics: Posted by Cristián Lávaque — August 10th, 2011, 1:40 pm


]]>
2011-08-10T12:28:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30391#p30391 <![CDATA[Re: restrictions not working at all :(]]>
Could this be a legitimate problem with s2member + buddypress?

Statistics: Posted by Paulo — August 10th, 2011, 12:28 pm


]]>
2011-08-10T12:02:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30386#p30386 <![CDATA[Re: restrictions not working at all :(]]>
Watch this video and tell me if it helps with your problem: http://www.s2member.com/content-restric ... ble-video/

And because you mentioned the Login Welcome Page, here's a video in case you're having trouble with that too: http://www.s2member.com/login-welcome-p ... cts-video/

Let me know if that helps.

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


]]>
2011-08-09T23:57:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30360#p30360 <![CDATA[Re: restrictions not working at all :(]]>

Would anyone be so kind as to tell me what values of '$login_redirection_uri' and '$_SERVER["REQUEST_URI"]' that you are getting within /includes/classes/posts.inc.php? Then I can try to see what went wrong.

Statistics: Posted by Paulo — August 9th, 2011, 11:57 pm


]]>
2011-08-09T21:31:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30354#p30354 <![CDATA[Re: restrictions not working at all :(]]>
Maybe try deleting and reinstalling? Perhaps a setting got messed up somewhere.

Statistics: Posted by Bruce C — August 9th, 2011, 9:31 pm


]]>
2011-08-09T16:25:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14392&p=30329#p30329 <![CDATA[restrictions not working at all :(]]>
First of all, thank you for the great plugin. I think once I resolve this problem, the plugin will be tremendously useful for my project.

I am using WP 3.2.1 + Buddypress 1.2.9
S2Member Version 110731 (as displayed in WP plugin page)
Running on Apache Windows Test Server

Problem:
None of the restrictions seem to be working. As a basic test. I specified 'all' posts to require level 04 membership. However, the post is still visible to a non logged-in member.

Discovery:
After hours of digging, I think I may have discovered the culprit.

The plugin seems to check for five conditions to determine if post is restricted in posts.inc.php:

1. ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_redirection_override"]
2. ($login_redirection_uri = c_ws_plugin__s2member_login_redirects::login_redirection_uri ($user, "root-returns-false"))
3. preg_match ("/^" . preg_quote ($login_redirection_uri, "/") . "$/", $_SERVER["REQUEST_URI"])
4. c_ws_plugin__s2member_no_cache::no_cache_constants (true) !== "nill"
5. (!$user || !current_user_can ("access_s2member_level0")))

I found that 'login_redirection_uri' is '/^\/login-welcome-page\/$/'
and $_SERVER["REQUEST_URI"] is '<my_post_permalink>'

hence, condition 3 failed to match the two strings.

What is the correct behaviour? What should the values be supposedly?

Please help.

Thanks in advance!

-Paul

Statistics: Posted by Paulo — August 9th, 2011, 4:25 pm


]]>