The discussion revolves around highlighting moderator messages in Discourse. helmi seeks a way to visually distinguish moderation-related content, preferring a method that highlights specific parts of a post rather than the entire post. awesomerobot suggests using the built-in staff notice feature for full-post highlights and proposes a custom solution using a [wrap] BBCode with CSS styling for selective text highlighting. This method requires a dedicated moderator group (e.g., ‘team’) to restrict usage, with the CSS targeting the group’s class (e.g., .group-team) to apply the desired styling. helmi acknowledges the solution as helpful, though noting it applies to entire posts, not specific text segments.
I’m currently working on moving an existing forum over to Discourse. So far they used the [color] tag to color any moderation related messages by a moderator in blue (instead of black default text) to show that this part of a post is related to moderation instead of just a normal part of the discussion.
For various reasons I think this is a bad idea but they still want to keep highlighting. So I was thinking about a different way to do it. Did anyone yet do a similar thing? I was thinking about putting a frame around it and attach a little text tag to it like “Moderator’s message” or something similar.
This should be doable, right? Maybe something like a custom code/tag/bbcode? Maybe something does exist already to help do this?
oh wow - looks like I didn’t use discourse intensively enough yet. Thanks, that was what I was looking for. It only seems to work for a full post and I was more thinking about only for a certain part of the post but that’s definitely good already.
You also have the option to add a staff notice (the option is right below staff color), which will add a separate little section like this above any post:
The important thing to note with this method is that to prevent normal users from using the same code you’ll need to create a new group, and that group would have to be the moderator’s primary group (primary group is configurable from an individual user’s admin page). In my example above I’m using a group named “team”, which is where .group-team comes from.