Notifications
Clear all

wpForo 1.x.x [Solved] New private group default to usergroup members only

3 Posts
2 Users
1 Likes
263 Views
BrianWent
Posts: 4
Topic starter
(@brianwent)
New Member
Joined: 7 months ago

I am creating a lot of private forums on my website. Before creating the forum, I create a new usergroup strictly for that forum, then match up the two. That function is easy and works well.

However, when I create the forum, I have to manually set permissions for all the other usergroups for the entire site to No Access. By default, everyone on the site other than guests receive access. Since my site doesn't allow guests (it's a member-only site), the initial .

Is there some way that I can use the Category settings or some other way to default all other usergroups to No Access?

I anticipate the number of usergroups and private forums to grow considerably in the next year, so would like to know how to keep everyone out of the private forums, especially since it's currently easy to make a mistake and leave open access to non-usergroup members.

Topic Tags
2 Replies
Chris
Posts: 2353
Admin
(@chris)
Support Team
Joined: 1 year ago

Hi @brianwent,

wpForo by default doesn't have that kind of option, but we have written a code to set all the permissions for the usergroups to no access.

First go to Dashboard > Forums > Forums, edit the needed forum or create a new forum, then open the console, insert the below code in the console and press Enter.

[...document.querySelectorAll('#forum_permissions select')].forEach( select => select.value = 'no_access');
BrianWent
Posts: 4
Topic starter
(@brianwent)
New Member
Joined: 7 months ago

Perfect solution. Thanks!