Veg
09-14-2003, 05:12 PM
I need to know the condition so that if user is admin there username color is lets say red. I thought it was
<if condition="($bbuserinfo['usergroupid'] == 6"><font color="red">$post[username]</font><else />$post[username]</if>
And i also tried,
<if condition="($permissions['adminpermissions'] & CANCONTROLPANEL)"><font color="red">$post[username]</font><else />$post[username]</if>
That worked but then all users username was in that color if you were an admin. Can anyone sort me out with the correct code?. Thanks.
<if condition="($bbuserinfo['usergroupid'] == 6"><font color="red">$post[username]</font><else />$post[username]</if>
And i also tried,
<if condition="($permissions['adminpermissions'] & CANCONTROLPANEL)"><font color="red">$post[username]</font><else />$post[username]</if>
That worked but then all users username was in that color if you were an admin. Can anyone sort me out with the correct code?. Thanks.