Page 1 of 1

Buddypress URI Restriction for Profiles

PostPosted: August 29th, 2011, 5:12 pm
by lorikb
Hello,

I know this should be easy but it is not working for me.

I have wordpress and buddypress installed with s2member pro. I have two membership levels. The highest membership level (2) is the only one I want able to view profiles. I do want level 1 members to be able to see/edit their own profile.

So I entered under:
Restriction Options > URI Restrictions > URIs That Require #2 or Higher
/members/

I thought this would be all I had to do but it is not working :\ I logged out of my site and can still view all profiles without being redirected to my membership options page. I followed the video tutorial for setting up my site with s2member so I do have all the settings in place for my membership options page.

I am currently working in a local environment so I unfortunately cannot share a link.

I am new to s2member so I apologize if I am missing something really obvious.
Lori

Re: Buddypress URI Restriction for Profiles

PostPosted: August 29th, 2011, 6:10 pm
by Cristián Lávaque
Try adding this line to your /wp-config.php file.

Code: Select all
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 so s2Member realizes it's running on a localhost installation.

Let me know if that helps.

Re: Buddypress URI Restriction for Profiles

PostPosted: August 29th, 2011, 9:21 pm
by lorikb
Thanks! this fixed my issue!

Lori

Re: Buddypress URI Restriction for Profiles

PostPosted: August 30th, 2011, 4:20 pm
by Cristián Lávaque
Great! :)