Making warned posts stand out

Jake Bunce

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

Add the red code:

Rich (BB 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" />
Admin CP -> Appearance -> Templates -> EXTRA.css

Add this 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.