Restrict reading of buddypress network user's blogs to network subscribers or above

Hi, I'd like to set-up our site in such a way that each buddypress member has their own mu-blog with the added feature that ONLY network subscribers are able to read the blogs of network subscribers.

Or said in another way, unless you are a member of the network, you can not read any of the member's blogs.

Many thanks

Ralf

  • DavidM
    • DEV MAN’s Mascot

    Hi Ralf,

    Membership has a configuration option in membershipincludes/membership-config.php as follows:
    if(!defined('MEMBERSHIP_GLOBAL_TABLES')) define( 'MEMBERSHIP_GLOBAL_TABLES', false);

    You could potentially define that constant value in your functions.php file or alter that config file as so:
    define( 'MEMBERSHIP_GLOBAL_TABLES', true);

    With that, Membership will use a global table where the settings persist across the network, and you can then use URL Groups to restrict access to URLs, such as your sub-sites.

    It's a very complex feature that requires quite a bit of consideration, since post and page ids, among other things, don't persist across a network.

    If you're planning to restrict access to entire sub-sites, that would let you do it though.

    Hope this helps!

    -David

  • 2Ps
    • The Incredible Code Injector

    Hi David, nice to hear from you and thanks.

    It's a very complex feature that requires quite a bit of consideration, since post and page ids, among other things, don't persist across a network.

    Are you saying that the chance of the page ID x being the same amongst many user would break things?

    Let's say we we use permalinks that do not include the page ID# would that still be an issue considering no user / member would have the same page ID twice and each user has their unique URL?

    Is this the issue you are referring to?

    many kind thanks

    Ralf

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.