1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Should Moderators Be Added as the Primary Group or Secondary Group?

Discussion in 'XenForo Questions and Support' started by System0, Nov 18, 2014.

  1. System0

    System0 Active Member

    I am adding a moderator to my forum. I have the option of adding the member as a moderator in his primary group or assigning him as a moderator via a secondary group.

    What are the differences in these two options?

    Are there any permissions that are added to someone added as a moderator in the primary group that the secondary group does not receive?

    Kevin
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    System0 likes this.
  3. Amaury

    Amaury Well-Known Member

    Secondary.

    Registered should have all the basic permissions.
     
    System0 likes this.
  4. System0

    System0 Active Member

    Thanks for responding so quickly. I was not aware of that.

    That tutorial says that even administrators should have the registered usergroup as their main usergroup.

    So what is the purpose of the primary usergroup if it should not be used?
     
  5. Amaury

    Amaury Well-Known Member

    It should be used. Everyone should have Registered for their primary user group. Other user groups with additional permissions should be secondary.
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    There is no real difference between primary and secondary groups in terms of permissions besides what base permissions you wish them to have.
     
  7. System0

    System0 Active Member

    This is making me rethink the whole way I have my forum set up.

    Should I be downgrading my own account to registered and adding myself as an administrator via a secondary usergroup. Or is it stupid for me to even suggest this?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.

    That is the recommended way of setting up user groups.
     
  9. System0

    System0 Active Member

    What is the benefit to doing this?
     
  10. Amaury

    Amaury Well-Known Member

    You don't have to set permissions over and over.

    Set the permissions you want all your members to have in the Registered user group. Leave everything for other user groups set to Not Set (No), except for what you want them to have that members in Registered don't.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    It is explained in the resource.

    If a new XenForo permission is added or you install an add-on, you typically only have to set it in one user group then.
     
    System0 likes this.
  12. System0

    System0 Active Member

    Thanks for clarifying Maru. And thanks to everyone for helping me resolve this.
     
  13. Jeremy

    Jeremy XenForo Moderator Staff Member

    It isn't something you have to do, but using secondary user groups allows faster and easier management of permissions.

    If you decide you want to revoke a specific permission after it's been set to allow for all users except administrators, instead of going into n user groups, you go into one (Registered) and revoke it, then into the secondary user group(s) you'd like to have it and allow it there. Plus what Paul just said. :)
     
    System0 likes this.
  14. System0

    System0 Active Member

    Ahhh yes that makes sense. Saves me having to change permissions multiple times.
     
  15. System0

    System0 Active Member

    Thanks. Yes that does make more sense.

    One thing I noticed is that when I assign a user as a moderator, their user title does not change. Their titles are still displayed as "Premium Member" and not "Moderating". I imagine this has to do with a hierarchy for titles being used.
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    Check the display styling priority for the user groups.
     
  17. System0

    System0 Active Member

    Ahhh found it. Thanks Brogan. Much appreciated. :)
     
  18. System0

    System0 Active Member

    I have:

    • Registered usergroup with priority 0
    • Premium usergroup with priority 1
    • Moderators usergroup with priority 900
    • Administrators usergroup with priority 1,000
    Despite this, registered users who have been assigned to the premium usergroup and to the moderator group are displaying the premium usergroup title. I rebuilt cache but nothing changed.
     
  19. Mike

    Mike XenForo Developer Staff Member

    Rebuilt which cache? Rebuild the user information as that will recalculate display styling. If that doesn't change it, then that would probably indicate that there's something else awry.
     
  20. System0

    System0 Active Member

    I rebuilt user caches.

    There is an option to:
    Display user as staff
    If selected, this user will be listed publicly as a staff member
    Does that have to be selected?

    Kevin
     

Share This Page