PDA

View Full Version : Conditions in template that use the users groups


RedFoxy
12-04-2008, 01:50 PM
Hi all!
I wanna do a condition in my tpl to exclude some users groups to show a piece of template...
Actualy i use that code but i don't like it:

<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND ($bbuserinfo[posts]<2000 OR !$bbuserinfo[userid])">

html tags...

</if>

Now i wanna change that condition to show to ALL and exclude some user groups...

How can I do?

Lynne
12-04-2008, 02:24 PM
<if condition="is_member_of($bbuserinfo, 5, 6, 7)">
stuff to show if user viewing is a member of usergroup 5,6,7
</if>

<if condition="is_member_of($userinfo, 5, 6, 7)">
stuff to show to all only if the member is in usergroup 5,6,7
</if>

RedFoxy
12-04-2008, 02:58 PM
yes tanky