Not Solved PHP in Templates and Template Conditionals
#55
Not Solved
<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 5 || $GLOBALS['mybb']->user['usergroup'] == 6 then> stuff for usergroup 4,5,6</if>

or

<if in_array($GLOBALS['mybb']->user['usergroup'], array(4,5,6)) then> stuff for usergroup 4,5,6</if>
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by Yumi - 2009-11-29, 01:56 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 84 Guest(s)