• 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
Admin CP -> Appearance -> Templates -> message

Add the red 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.