Notifications
Clear all

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

3 Posts
2 Users
1 Reactions
608 Views
Posts: 4
Topic starter
(@brianwent)
Active Member
Joined: 3 years 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.

2 Replies
Chris
Posts: 3627
(@chris)
Famed Member
Joined: 3 years 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');
Posts: 4
Topic starter
(@brianwent)
Active Member
Joined: 3 years ago

Perfect solution. Thanks!