New users being held for admin approval


Well-known member
Is there any way to edit the name color of new users being held for admin approval? That way I could quickly see in the members online box any new members that need approving.

Jake Bunce

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

Add the red code:

Rich (BB code):
<!-- block: sidebar_online_users -->
<div class="section membersOnline userList">		
	<div class="secondaryContent">
		<h3><a href="{xen:link online}" title="{xen:phrase see_all_online_users}">{xen:phrase members_online_now}</a></h3>
		<xen:if is="{$onlineUsers.records}">
			<xen:if is="{$visitor.user_id}">
				<xen:if hascontent="true">
				<h4 class="minorHeading"><a href="{xen:link account/following}">{xen:phrase people_you_follow}:</a></h4>
				<ul class="followedOnline">
						<xen:foreach loop="$onlineUsers.records" value="$user">
							<xen:if is="{$user.followed}">
								<li title="{$user.username}" class="Tooltip"><xen:avatar user="$user" size="s" img="true" class="_plainImage" /></li>
				<h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
			<ol class="listInline">
				<xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
					<xen:if is="{$i} <= {$onlineUsers.limit}">
						<xen:if is="{$user.user_id}">
							<a href="{xen:link members, $user}" {xen:if "{$user.user_state} == 'moderated'", 'style="color: red;"'}
								class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
						<xen:else />
							{xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
				<xen:if is="{$onlineUsers.recordsUnseen}">
					<li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more, 'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
		<div class="footnote">
			{xen:phrase online_now_x_members_y_guests_z, 'total={xen:number $}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}'}
<!-- end block: sidebar_online_users -->
The result:

Screen shot 2012-03-06 at 7.36.24 PM.png

This uses quick and dirty inline styling. You can change it over to CSS classes if you want.