Log in

View Full Version : Background Color when Admin or Mod posts?


Knight0319
10-22-2008, 03:26 AM
I was wondering if there was a way (or a mod for 3.7) to give a sort of "fade-away" background color when an Administrator, or Moderator posts. I've seen it on a 3.6 forum a while back, but have not seen it yet on 3.7.

I'll include an image of what I mean.

Dismounted
10-22-2008, 06:41 AM
In postbit(_legacy), find:
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
Replace with:
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<if condition="is_member_of($post, X)">
<td class="YOUR_CLASS" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
</if>
Replace "X" in "<if condition="is_member_of($post, X)">" with your Admin/Moderator usergroups.
Replace YOUR_CLASS with your own CSS class.

Knight0319
10-22-2008, 07:26 PM
That works perfectly, thanks Dismounted.