View Full Version : How to vb:if a usergroup?

04 Dec 2009, 08:17
I'm trying to write a vb:if statement to check a usergroup and do one thing and if the usergroup isn't the one specified I want it to do something else.

I have the statement written correctly, the only issue is that I can't figure out the string to have it check a usergroup.

In vBulletin 3.x.x I wrote the statement with this string:

if condition="is_member_of($post, 1)"

That would check for the administrator usergroup, but under vb4 that string no longer works.

I'm wondering if anyone knows what the new string would be to check if a member is part of a specific usergroup?

--------------- Added 1259915131 at 1259915131 ---------------

Ahh nevermind, it does work the same still. I was missing a " in the statement! D'oh!

04 Dec 2009, 13:47
<vb:if condition="is_member_of($post, 1)">
//stuff Here