• Resolved jockoe

    (@jockoe)


    I’m using the BuddyBoss Platform along with PMP Addon for BuddyPress. Using the addon, I am able to restrict access to all of my BuddyBoss pages for anyone that is not logged-in. I want to use a page in my menu that does not belong to BuddyBoss. How do I restrict that one?

    You can see on the top menu at https://crewcall.community/ that FAQ is not restricted.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Kim White

    (@kimwhite)

    Hi!
    When Paid Membership Pro is installed, all pages and posts should see a meta box to check “Require Membership” by Level. You can select the level(s) that is allowed to see the page.

    You can read complete details and/or watch our video about Restricting Content with PMPro on this post:
    https://www.paidmembershipspro.com/documentation/content-controls/

    Kim W

    Thread Starter jockoe

    (@jockoe)

    That did annswer my question, but I asked my question wrong.

    What I want is for all of the links on the front page to use the same “Access Restricted” page. As you will see on my front page at https://crewcall.community/… All 4 links in the menu are restricted, but FAQ is the only one that doesn’t use the “Access Restricted” page that I setup when I activated the BuddyPress Addon. How can I make non-BuddyBoss pages use that same “Access Restricted” page?

    Plugin Author Andrew Lima

    (@andrewza)

    Here is a guide you may follow to redirect non-members away to a specific page for restricted pages/posts through Paid Memberships Pro – https://www.paidmembershipspro.com/redirect-non-members-away-from-member-content/

    This uses function ‘pmpro_has_membership_access’ to see if the user has access to the page or post and then calls wp_redirect, to redirect them to the certain page defined inside the template_redirect hook.

    I hope this helps.

    Thread Starter jockoe

    (@jockoe)

    Judging by your description I’m hoping that this is what I have been searching for, but I am not a coder and am not sure how I am to implement this code. (I did add it to the Code Snippets plug-in) In this line of the code, wp_redirect( pmpro_url( 'levels' ) );, I tried replacing ‘levels’ with the full URL of my specific page which is ‘https://crewcall.community/membership-account/access-restricted/’. I also tried just ‘membership-account/access-restricted’. Neither worked for me.

    Is there a step-by-step tutorial on how to edit this code recipe to use my custom “Access Restricted” page for all restricted pages? (I am a PMP member)

    Plugin Author Andrew Lima

    (@andrewza)

    You would need to use wp_redirect( 'https://crewcall.community/membership-account/access-restricted/' ) to redirect.

    For assistance in tweaking a custom code snippet, you may reach out to our support channel on https://www.paidmembershipspro.com for assistance as we’ll be able to help you in greater detail.

    Thank you for understanding, I’ll keep an eye out for your new support ticket.

    Thread Starter jockoe

    (@jockoe)

    Well, that worked perfectly! I’ve been searching 2 days for this. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Restrict non-BuddyBoss pages’ is closed to new replies.