Is there a way to display moderator rights only in category the user is a moderator?

General Discussion
  • #1

    I know I could add my moderators to a group and make that group visible. But I'd like to make their moderator status only visible in the category they are moderating. For this I would need to create several groups and manage them independently from the rights. Is there already such a possibility in NodeBB core or via a plugin? I can't find anything.

    Otherwise I think it could be done via the hook filter:topics.addPostData? Just iterate over the posts array, get the category, and for every user of a post add an object to custom_profile_info with the property content set to some HTML indicating moderator rights?

  • GNU/Linux
    #2

    @dravere said in Is there a way to display moderator rights only in category the user is a moderator?:

    Otherwise I think it could be done via the hook filter:topics.addPostData? Just iterate over the posts array, get the category, and for every user of a post add an object to custom_profile_info with the property content set to some HTML indicating moderator rights?

    Probably this... alternatively, use the groups method, but hook into filter:topics.addPostData to remove the group badge if they're not in the category that user moderates?


Suggested Topics


  • [Forum Admin] Prune Users or Topics

    Unsolved General Discussion
    3 Votes
    7 Posts
    2860 Views

  • 0 Votes
    4 Posts
    250 Views

  • 0 Votes
    4 Posts
    1387 Views

  • New user registration

    General Discussion
    0 Votes
    1 Posts
    684 Views

  • 0 Votes
    4 Posts
    1428 Views

| | | |