AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] New private group default to usergroup members only

3 Posts
2 Users
1 Reactions
1,175 Views
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@brianwent)
Active Member
Joined: 4 years ago
[#21242]

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: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@brianwent)
Active Member
Joined: 4 years ago

Perfect solution. Thanks!


Share: