latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Restrict BuddyPress with S2M not working

Home Forums Community Forum Restrict BuddyPress with S2M not working

This topic contains 5 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years ago.

Topic Author Topic
Posted: Monday Dec 17th, 2012 at 11:04 am #34843
eBierek
Username: eBierek

Hi,

I’m trying to keep BuddyPress pages and profiles protected (hidden), if not a logged in/payed member, by S2M. But it doesn’t seem to work that well.

In S2M: Restriction options > URI restrictions (typical w BuddyPress):
Here I added the url http://domain.se/members/ hoping to protect this page and all users profile pages like http://domain.se/members/anna, http://domain.se/members/sara etc, but it’s just http://domain.se/members/ that gets protected.

I can’t manually add every users link to this list whenever they sign up, they’re 2000 and going up.
Do you have a possible suggestion how to keep BuddyPress for the paying loged in users (away from the public)?
(Setup is latest versions of all plugins and WP.)

Thank you in advance, E

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Tuesday Dec 18th, 2012 at 9:20 am #34920

Hi Emily.

Could you try just [hilite mono]/members/[/hilite]? [hilite path]Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions[/hilite]

/members/
Posted: Tuesday Dec 18th, 2012 at 10:19 am #34940
eBierek
Username: eBierek

Thank you, that seems to work. Could you explain the difference please?

Posted: Wednesday Dec 19th, 2012 at 8:21 am #35027

I’m glad that helped! Thanks for the update. :)

This is a URI restriction, not a URL one. You were entering the URL, so I suggested using the URI only.

From [hilite path]Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions[/hilite]

Here you can specify URIs ( or word fragments found in URIs ) that are restricted to certain Membership Access Levels. Control over URIs is a little more complex. This section is intended for advanced webmasters only. That being said, here are the basics… A REQUEST_URI, is the portion of a URL that comes immediately after the domain. This is a URL http://www.example.com/path/to/file.php, and this is the URI: /path/to/file.php. In other words, a REQUEST_URI is the full path to a real ( or virtual ) directory and/or file on your domain.

In the fields below, you can provide a list ( one per line ) of URIs on your site that should be off-limits based on Membership Level. You can also use word fragments instead of a full URI. If a word fragment is found anywhere in the URI, it will be protected. Wildcards and other regex patterns are NOT supported here, and therefore you don’t need to escape special characters or anything. Please note, these ARE caSe sensitive. You must be specific with respect to case sensitivity. The word fragment some-path/ would NOT match a URI that contains some-Path/. A few Replacement Codes are also supported here.

Posted: Wednesday Dec 19th, 2012 at 2:32 pm #35083
eBierek
Username: eBierek

Thank you for explaining :)

Posted: Thursday Dec 20th, 2012 at 8:43 am #35147

No problem. :)

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.