PDA

View Full Version : Proper conditional syntax.


sdp777
02-09-2006, 12:09 AM
I have a permission level access for my staff on my site. Any respective post displays for those who have permission on my home page, at www.vizdepot.com, however, I want to also conditionalize its display with a color so its more easily recognizable to my moderators.

This is something like what I am after but its not the proper syntax. Any advice would be appreciated.

<if forumid=['6']><font color="#FF0000">$thread[threadtitle]</font></if>

Guest190829
02-09-2006, 01:30 AM
<if condition="is_member_of($userinfo, x)"><span style="color: blah">$thread[threadtitle]</if>


Replace x with the usergroupid of your moderators, and replace blah with an appropriate color or hex color code.

sdp777
02-09-2006, 02:11 AM
Thanks Danny, I ended up figuring it out with the forum id...

<if condition="$thread[forumid] == 6"><font color="#FF0000"></if>$threadtitle<if condition="$thread[forumid] == 6"></font></if>