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.
-
AuthorPosts
-
April 23, 2016 at 1:13 am #6589
Anonymous
InactiveCan 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 #6598mbrsolution
ModeratorHi 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 #6602Anonymous
InactiveFabulous! That would be really helpful! Thank you.
Your tutorials are excellent!
August 16, 2016 at 8:22 pm #7843Anonymous
InactiveIs there any solution to this yet please?
August 16, 2016 at 9:14 pm #7846mbrsolution
ModeratorUnfortunately 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 #7848Anonymous
InactiveI’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 #7850mbrsolution
ModeratorThank 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 #7851Anonymous
InactiveAlways 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 #20962Sammi
ParticipantMary, how does your solution work with updates?
ThanksSeptember 26, 2020 at 12:35 am #20965Anonymous
InactiveOMG 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.
-
AuthorPosts
- You must be logged in to reply to this topic.