PDA

View Full Version : Admin default post color


ibeteck
01-04-2010, 01:35 PM
Hello I was wondering if anyone new the code for default post color for admin or any group of your choice. This is what I had with vB 3.8.4
<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
<!--message-->
<if condition="$post['usergroupid'] == '5'">
<div style="color: red">
</if>
<if condition="$post['usergroupid'] == '6'">
<div style="color: purple">
</if>
<if condition="$post['usergroupid'] == '7'">
<div style="color: red">
</if>
<if condition="$post['usergroupid'] == '27'">
<div style="color: orange">
</if>

$post[message]

<if condition="$post['usergroupid'] == '5'">
</div>
</if>
<if condition="$post['usergroupid'] == '6'">
</div>
</if>
<if condition="$post['usergroupid'] == '7'">
</div>
</if>
<if condition="$post['usergroupid'] == '25'">
</div>
</if>
<!--message-->

I tried it on vB4 it doesnt work can anyone help me out.

Lynne
01-04-2010, 02:08 PM
It should work. Let's see exactly what you tried in the vB4 template. A link to see this in action would also help.

ibeteck
01-04-2010, 02:29 PM
It gave me an error when I tried to save it. That's probably because I don't know where it goes on vB4 I tried searching for the same variable like in the prior vbulletin.

Lynne
01-04-2010, 02:44 PM
You did change the if's, right? Instead of <if , you write <vb:if and instead of </if , you write </vb:if

ibeteck
01-04-2010, 03:16 PM
No I didn't :D. I will try it but where would I place it?

NM got it thanks for the help.