Log in

View Full Version : Test if a user does not belong to a usergroup


gdguide
04-29-2009, 03:09 AM
We've got a "Donator" usergroup on our forums, and I'm trying to set it up so that ads do not display for donators. At the moment I've just removed all donators from the standard 1-7 usergroups and use this code:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7)">
AD CODE
</if>

My Donator usergroup is 39, and I'm wondering if I can do something like this:

<if condition!="is_member_of($bbuserinfo, 39)">
AD CODE
</if>

However, I can't figure a way to test if a member is not of a specific usergroup - is there an easy way to do so?

Lynne
04-29-2009, 03:18 AM
<if condition="!is_member_of($bbuserinfo, 39)">
AD CODE
</if>

gdguide
04-29-2009, 03:32 AM
Thank you! :)