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

Making warned posts stand out

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> message

Add the red code:

Code:
<xen:require css="message.css" />
<xen:require css="bb_code.css" />

<li id="{$messageId}" class="message {xen:if $message.warning_id, 'warned'} {xen:if $message.isDeleted, 'deleted'} {xen:if '{$message.is_admin} OR {$message.is_moderator}', 'staff'} {xen:if $message.isIgnored, ignored}" data-author="{$message.username}">

	<xen:include template="message_user_info">
		<xen:map from="$message" to="$user" />
	</xen:include>
Admin CP -> Appearance -> Templates -> EXTRA.css

Add this code:

Code:
.message.warned .messageContent
{
	background-color: red;
}
You can use any CSS / markup you want using .message.warned as the first part of the selector.