Making warned posts stand out

Jake Bunce

XenForo moderator
Staff member
#2
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" />
	</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.
 
Top