Log in

View Full Version : Usergroups conditional in posbit_legacy?


john1744
03-07-2006, 08:24 PM
I want certain phrases to display based on usergroup id's in the postbit_legacy.

What would I wrap around them to achieve this. I realize its probably an if usegroup == # then....

merk
03-07-2006, 09:08 PM
<if condition="is_member_of($vbulletin->userinfo, X, Y, Z)">member of x y or z</if>

$vbulletin->userinfo may not work, it might need $post, it might need $GLOBALS['vbulletin']->userinfo.

chinch
03-08-2006, 03:37 AM
<if condition="is_member_of($post, 15)"><div class="smallfont">TEXT GOES HERE</div></if>

where 15 is the usergroup id 15. repeat for any usergroup needed

B-Man
03-11-2006, 05:16 PM
This helped me as well. Thanks!