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>
However, I do think this will not work for what I'm trying, but only verifies the actual user checking the forum. So not the individual people posting, but the viewer, so to speak. Meaning that if that user is a member of one of these groups, the condition will always be true, and it would end up showing the line with the faction for every user.
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?