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.

BuddyPress restrict access to others profiles

Home Forums Community Forum BuddyPress restrict access to others profiles

This topic contains 2 replies, has 1 voice. Last updated by  Lavish Dhand 4 years, 4 months ago.

Topic Author Topic
Posted: Monday Aug 27th, 2012 at 12:14 pm #23176
Lavish Dhand
Username: lavish

At a BuddyPress website I have, I wish to have a system in place where for example:

Level 1 members can see and maintain their own profiles only. (No access to others profiles)
Level 2 members can see others profiles too.

Anyone kindly give a hint / idea to achieve the above.

Thank you very much

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Tuesday Aug 28th, 2012 at 3:47 am #23241
Lavish Dhand
Username: lavish

Can someone have a look here :

http://www.s2member.com/forums/topic/uri-restriction-for-buddypress-profile/

and please guide me where to put the second bit of code:

$displayed_username = str_replace("/members/", "", $_SERVER["REQUEST_URI);
$slash = strpos($displayed_username, "/");
$displayed_username = substr_replace($displayed_username, "", $slash);

Thank you

Posted: Friday Aug 31st, 2012 at 2:26 am #23642
Lavish Dhand
Username: lavish

Mr Wells, @houfton can you kindly help me with this please?

Viewing 2 replies - 1 through 2 (of 2 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.