XF 2.2 Permission to post in a forum. How do I disallow all people in one usergroup except all people in another?

Stuart Wright

Well-known member
I want people in one usergroup to never be able to post in a specific forum unless they are a member of a different specific usergroup.
I.e. people with the Adblocking usergroup can't post in the classified forums unless they have the Patreon usergroup.
Is this possible? Because I'm struggling to figure out how to do it.
Thanks
 
Solution
Use the two user group options together for the promotion.
  • User is a member of any of the selected user groups: Adblocking
  • User is NOT a member of any of the selected user groups: Patreon

That will promote them to a new user group which can then have post restrictions placed on it for the specific forum.
Use the two user group options together for the promotion.
  • User is a member of any of the selected user groups: Adblocking
  • User is NOT a member of any of the selected user groups: Patreon

That will promote them to a new user group which can then have post restrictions placed on it for the specific forum.
 
Solution
Use the two user group options together for the promotion.
  • User is a member of any of the selected user groups: Adblocking
  • User is NOT a member of any of the selected user groups: Patreon

That will promote them to a new user group which can then have post restrictions placed on it for the specific forum.
Many thanks Paul, that works.
With 26, do I get the prize for the most usergroups?
 
Alternatively to the solution already given, make the node private, Registered Users usergroup have read-only permissions, and Patreon usergroup post permissions.
Thank you but that’s not quite right. Registered users need to post. Those blocking ads and who are patrons need to post. Those blocking ads who are not patrons may not post. Adding the extra usergroup fixes it.
 
Use the two user group options together for the promotion.
  • User is a member of any of the selected user groups: Adblocking
  • User is NOT a member of any of the selected user groups: Patreon

That will promote them to a new user group which can then have post restrictions placed on it for the specific forum.
Follow up question, Paul. Does the system do a fresh promotion process when any of the promotion changing criteria change?

Example.
Wutime’s Adblock detector addon adds an Adblocker usergroup when they are detected blocking ads.
A promotion adds another usergroup May not use extra features if the Adblocker usergroup is present but the Patreon supporter usergroup is not.
Then a second promotion adds the May use extra features usergroup if the May not use extra features is not present and the Newsletter subscriber usergroup is.
Complicated.

When the Adblocker usergroup is added, is the first promotion instantly triggered and then the second?
 
I can't comment on how that third party add-on works but as far as XF is concerned, promotions are applied based on a routine cron task, and also at log in.
 
Actually I can't use this solution. Usergroup promotions don't seem to work properly. When one promotion relies on being in a usergroup determined by another promotion, they don't seem to work. I can't pin down the issue.
 
It doesn't matter how user groups are applied, so you likely have something else involved.

Note that promotions are only automatically applied to recently active members or on log in.
 
Back
Top Bottom