MyBB Hacks

Full Version: Add parameter in tplcond-1.6
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<if $GLOBALS['mybb']->user['usergroup'] != 10 then>
Is it also possible to ad more groups as parameter.
I mean this sample:
<if $GLOBALS['mybb']->user['usergroup'] != 10 =12 = 23 then>
<if !in_array($GLOBALS['mybb']->user['usergroup'], array(10,12,23)) then>
Sorry
It does not work fine.

<if !in_array($GLOBALS['mybb']->user['usergroup'], array(3,5,7,10,12,23,26)) then>

When group (2) are not selected even it will also has effect.
Reference URL's