How to mark administrators / moderators?

ToddTodd Member
edited June 2012 in Questions
Hi. Is there a badge or something very obvious we can do to identify the forum moderators? In our case, when an employee posts something or replies to something, we want it to be unique. On other forums I've seen different colored background/text, badges on avatars, etc. What is my option with Vanilla?

Thanks!

Comments

  • I believe the "Role Title" addon may be what you're looking for. That will add the users' role(s) by their name in each comment.

    It also adds a class to every comment like Role_Member or Role_Administrator that will let you target comments with styles per the role of the member who made it.

  • ToddTodd Member
    Thanks Lincoln. How do I check the class it provides? I assume there's no easy way (plugin) to adjust the font/background/icon badge for certain role types?

    The "role title" alone isn't enough distinction for what we need.
  • ToddTodd Member
    We are all set - found some of the css. It would be nice though if you listed out the css we can modify for this. Even better would be a configuration in the plugin. :)
  • ToddTodd Member
    Ok I lied. It seems that any reference to "roletitle" from the plugin you mentioned can't be called to modify the actual username or post style, but it can modify the actual role title, which we don't want. We want the post itself to have different characteristics along with the username if they are an admin or employee. Is there another way to do this?
  • Enhancements to the Role Title plugin are on the to-do list. :)

    For now, the CSS class applied is always: Role_{RoleNameNoSpaces}

    It changes as you add new roles, etc. If you run into trouble targeting what you want, feel free to ask and I'll take a look.
  • ToddTodd Member
    Would be great if you could take a peek.
  • Ah, we cross-posted there.

    You'll want to target the li element that each comment is wrapped in, like this: https://imgur.com/PXD8L

    So the rule would be something like:

    .MessageList .Role_Administrator { background-color: yellow; }
  • ToddTodd Member
    Lincoln - We settled on modifying the role title - made it stand out a bit more which is ok for now. If you have other ideas, please let me know. Your above suggestion with the "Role_RoleName" didn't work for me.
  • Looking at this closer, it appears Role Titles lost the ability to do that for the original post in each discussion. So you can style the comments this way, but not the discussion starter. This is a bug I'll file and get it updated in the next release.
  • ToddTodd Member
    Ahh ok. Thanks Lincoln. How do we track the progress of these bugs?
  • I've made a note to come back to this discussion once I have the fix ready.
  • @Lincoln Definitely want to know when the fix is ready for this.
  • ToddTodd Member
    @Lincoln is there any update on this?
  • We have a release scheduled for the 17th, which should include this fix.
This discussion has been closed.