Home › Toolset Professional Support › [Resolved] Hide BuddyPress Group Listing For Special User Group
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 1 voice.
Last updated by Minesh 2 weeks, 3 days ago.
Assisted by: Minesh.
Hi Team,
I want to restrict access to the group listing within a BuddyPress (BuddyBoss) environment so that only specific user groups can view it.
Here’s what I have done so far (see Image attached):
1. Enabled the "Managed by Access" option under "Access Control / Post Types / Pages"
2. Created a group "only logged in" under "Access Control / Post Groups"
3. Assigned the page with the group listing to this group
4. Created a user role "Extern" under "Access Control / Custom Roles" (Copy privileges from: "Guest")
5. Assigned a test user to this role
6. remove the read privilege in "Access Control / Post Groups" for this user role
Unfortunately, the test user can still access the group listing page.
Which settings are required to exclude specific user roles?
Best regards
Hello. Thank you for contacting the Toolset support.
As you are using BuddyPress - there are number of alternate solutions available.
Can you please try to look at the following options and check if that helps:
- hidden link
- hidden link
- hidden link
thanks for the info.
"Restrictions for BuddyPress" is unreliable since it hasn’t been updated for three years.
The other two plugins allow restricting the entire BuddyPress system, which is already active.
My goal is to use Toolset Access to restrict access to a specific page for a specific user role. This works on standard WordPress systems but not with BuddyPress. Maybe you can check and correct this.
Can you please share what page you want to restrict from Guest user as well as send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Thank you for sharing admin access details but somehow I do not able to access the login page or wp-admin, its not loading. Can you please send me working site.
Note: I've also tried authorization access details.
I have set the next reply to private which means only you and I have access to it.
Ok, the server access credentials are correct. The WP admin login is correct as well. However, the FTP folder is written incorrectly from your form to the output. Try 'w01bf4e1.kasserver.com' as the server.
I have successfully tested all logins.
Otherwise send me a screenshot.
Thank you for you help.
Can you please check now. For me - its working. I just set the 404 error for the guest user with the post group you created.
=> hidden link
It is not the Guest role; it is the 'Extern' role.
Please try it now with another user:
- Add a new user and assign them the 'Extern' role.
- Log in and try to open the page 'test - not for external.'
This page is added to the Post Group 'only logged in,' but the 'Extern' user role can still see it.
Ok I checked and I see the issue but I do not have any solution here. We do not have any official integration with BuddyPress and it's wise to check with BuddyPress support as whatever permission we gave but after login as "Extern" user role - it always redirect to profile page.
You can check with BuddyPress support and if they have any solution you're welomce to share here that may help other users.
Too bad. Thank you for the test.
I am now programmatically hooking into the actions 'pre_get_posts', 'wp_nav_menu_objects', 'get_pages', 'template_redirect', 'bp_actions' etc. to check the user role.
ok fine.
If you found any working solution, you're welcome to share here that may benefit other users.