The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
postbit_legacy - is_member_of
Hi guys,
On my forum we are running the Conquest system from Jaxel. In the postbit_legacy, I would like to have a little addition showing which faction a user is a member of, if they play the game. I figured the easiest way to check whether a user is a member of one of the usergroups created for the game would be using the is_member_of: Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if> Clearly that will not cut it. So I tried rewriting the above slightly to not use $vbulletin-> userinfo, but instead use $post[membergroupids]. This did not yield any results whatsoever. Would anyone be able to point me in the direction of how to verify (from within the postbit_legacy templae) whether the users who posted in the thread are members of a group? Will the is_member_of still somehow work, or should I write something that checks the comma seperated list of membergroupids? Thanks in advance --------------- Added [DATE]1278911729[/DATE] at [TIME]1278911729[/TIME] --------------- In the meantime, I also tried using "in_array", but still no luck. Anyone, please? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|