Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Protect BuddyPress Members Pages

Simple Membership Plugin › Forums › Simple Membership Plugin › Protect BuddyPress Members Pages

Tagged: member protection

  • This topic has 9 replies, 3 voices, and was last updated 6 years, 1 month ago by Anonymous.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • April 23, 2016 at 1:13 am #6589
    Anonymous
    Inactive

    Can someone please help me to protect my BuddyPress Members’ pages.

    For the “Members” page I have selected YES for protection, but people can still see the members and all their profiles without being logged in.

    I have downloaded and installed swpm-custom type protection enhanced addon, gone into Membership Levels -> Category Protection, but “Members” is not listed.

    This is the most basic protection that I need for my members. How do I accomplish it?

    Thank you.

    April 24, 2016 at 1:27 am #6598
    mbrsolution
    Moderator

    Hi Mary the plugin developers will investigate further your issue.

    I have also installed the BuddyPress plugin so that I can play around with it and to further understand the functionality of the plugin. This will allow me to write some tutorials in the future.

    Kind regards

    April 24, 2016 at 1:52 am #6602
    Anonymous
    Inactive

    Fabulous! That would be really helpful! Thank you.

    Your tutorials are excellent!

    August 16, 2016 at 8:22 pm #7843
    Anonymous
    Inactive

    Is there any solution to this yet please?

    August 16, 2016 at 9:14 pm #7846
    mbrsolution
    Moderator

    Unfortunately no add-on has been developed yet for BuddyPress. The developers are very busy with other work.

    Kind regards

    August 16, 2016 at 9:17 pm #7848
    Anonymous
    Inactive

    I’m finding another solution. I found the following code to put in bp-custom.php

    <?php
    function bp_guest_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    // enter the slug or component conditional here
    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    } // user will be redirect to any link to want
    }
    }
    add_filter(‘get_header’,’bp_guest_redirect’,1);
    ?>

    Just testing it out. So far it’s looking good.

    August 16, 2016 at 11:29 pm #7850
    mbrsolution
    Moderator

    Thank you Mary for sharing 🙂

    Keep us posted if this custom PHP code does work well for your site.

    Regards

    August 16, 2016 at 11:31 pm #7851
    Anonymous
    Inactive

    Always a pleasure to share. I know what it’s like to search for answers and how grateful I always am when I find something useful!

    I haven’t run into any problems so far. I think it’s going to work. 😉

    September 25, 2020 at 8:11 pm #20962
    Sammi
    Participant

    Mary, how does your solution work with updates?
    Thanks

    September 26, 2020 at 12:35 am #20965
    Anonymous
    Inactive

    OMG I can’t remember what happened yesterday and you’re asking me about something from four years ago. To be honest I really can’t remember back that far but as far as I can tell, everything is working fine.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy