Find Answers and Get Support › Forums › Cera – Intranet & Community Theme › Popular Features › Member Directory › No way to properly restrict access to the site for members
- This topic has 5 replies, 3 voices, and was last updated 4 years, 9 months ago by
Themosaurusrex.
-
AuthorPosts
-
Brian RobbinsParticipant@brobbins
- 11 Topics
- 24 Posts
Obviously with a membership site (buddypress), I would want to restrict access to the buddypress parts of the site. I cannot make this happen. I used buddypress and PMPro to try and do it and despite my efforts logged out users can still access members page, profiles, the dashboard etc.
I then downloaded the “My Private Site” plugin. This was able to allow me to restrict the site except for certain pages like the homepage. good. except that I can’t also allow logged out users to see my posts.
How can a close off the entire site except for the homepage, login, register, news, and posts?
May 1, 2020 at 21:37 #12292Brian RobbinsParticipant@brobbins- 11 Topics
- 24 Posts
This plugin does not work. It restricted my homepage and nothing else.
May 1, 2020 at 22:03 #12297@themosaurusrex- 0 Topics
- 2048 Posts
Hi @brobbins,
You should be able to achieve this with PMPro.
Plenty of PMPro add-ons are available on the author website to go further if necessary, including one for BuddyPress restrictions:
This is probably the missing piece if you wish to block access to your members directory.
Please note that this issue is related with the use of Paid Memberships Pro, not with the use of your theme. It’s best if you try to reach the plugin authors as they will be more informed and better suited to help you.
To go further, we invite you to post your request on their support forums:
We remain available for all support requests related with the use of your theme.
Best,
May 4, 2020 at 14:34 #12400Brian RobbinsParticipant@brobbins- 11 Topics
- 24 Posts
I was able to fix this issue. You can restrict access to the site effectively using PMPro but when users register on the buddypress register page they are not automatically assigned a membership level in PMPro. I added the code below to the code snippets plugin so that users automatically are assigned a membership level on registration.
function my_pmpro_default_registration_level($user_id) {
//Give all members who register membership level 1
pmpro_changeMembershipLevel(1, $user_id);
}
add_action(‘user_register’, ‘my_pmpro_default_registration_level’);May 4, 2020 at 15:09 #12411 -
AuthorPosts
The topic ‘No way to properly restrict access to the site for members’ is closed to new replies.