The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to vb:if a usergroup?
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 [DATE]1259915131[/DATE] at [TIME]1259915131[/TIME] --------------- Ahh nevermind, it does work the same still. I was missing a " in the statement! D'oh! |
#2
|
||||
|
||||
Code:
<vb:if condition="is_member_of($post, 1)"> //stuff Here </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|