Will not block members profiles

Hi,

After major problems with the previous version and then problems updating to this new one, (it wouldn’t update due to a corrupted zip file then problems accessing the new version so I could install it), I’ve managed to get it installed and working, but not how it should as although it is blocking most pages that I want now from non logged in members, whatever I try I can’t get to block BuddyBress members profiles, (if you copy and paste), which is a really important as the site is an adult site and people only want logged in members to be able to see their profiles.

Any suggestions what may be causing this, (with the main members page being blocked – https://fixations-club.com/members/ , but not when it is the same plus a member profile – https://fixations-club.com/members/holmey/).

Regards,

Holmey

  • Ash
    • Code Norris

    Hello @Holmey

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    Please go to Membership 2 > Add On and enable URL Protection addon. Then go to Membership 2 > Protection Rules > URL Restriction and add the following urls:

    https://fixations-club.com/members/

    https://fixations-club.com/members/*

    https://fixations-club.com/members/(*)

    Then modify access for the URLS.

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers

    Ash

    [attachments are only viewable by logged-in members]

  • Hoang Ngo
    • The Green Incsub

    Hi @Holmey,

    Please add this code to your theme functions.php or use mu-plugins

    add_filter( 'ms_rule_url_model_check_url_expression_match', 'check_url_for_regex_ms2', 10, 4 );
    function check_url_for_regex_ms2( $match, $url, $check_list, $model ) {
    foreach ( $check_list as $check ) {
    $check = "#$check#";
    if ( preg_match( $check, $url ) ) {
    $match = true;
    break;
    }
    }

    return $match;
    }

    Lets see if it can help. If you have any issues please don’t hesitate to let us know so we can assist.

    Best regards,

    Hoang

  • Holmey
    • Design Lord, Child of Thor

    That’s triggered an error when you try to access a page that should be logged.

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 36 in /home/bdkdhhrb/public_html/wp-content/themes/weaver-xtreme/functions.php on line 418

    I’m beginning to think the WPMU are getting clients to pay for their plugins and beta test them to sort out the problems with them as the problems I’m having here and I would, (as I have asked several times), like to raise this issue to management level, a $19 plugin here has ended up costing me over £100 in time so far, not a good advert for WPMU.

    Can I have some management input here, this is a ridiculous situation

  • Kasia Swiderska
    • Support nomad

    Hello Holmey,

    Could you be so kind and check now if content restrictions is working properly? I’m testing it now as non logged visitor and members profiles/forum/groups are hidden.

    If there is more blocking for BuddyPress needed, it can be add in Membership -> Protection Rules -> BuddyPress tab (this is BuddyPress add-on option).

    kind regards,

    Kasia