PDA

View Full Version : Checking Usergroups in a template


jim6763nva
05-13-2008, 11:01 PM
I need to use the is_member_of function in a conditional to check multiple user groups. The following psuedo code is an example:


<if member of group 1 or if member of group 2 or if member of group 3>
display this link
</if>

Can this be done? If so, can someone give me an example please?

Many thanks,
Jim

Paul M
05-13-2008, 11:09 PM
is_member_of($vbulletin->userinfo,1,2,3)

You can add as many paramaters as you want to check.

jim6763nva
05-14-2008, 12:09 AM
is_member_of($vbulletin->userinfo,1,2,3)

You can add as many paramaters as you want to check.

Hey Paul,

Thank you very much for this! :)