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>

PHP Code:
<if in_array($mybb->user['usergroup'], array(1,2,3)) then>


http://php.net/manual/en/function.in-array.php

Probably reading this may be useful to you:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=851&pid=1037


Why two threads?
(09-05-2012 05:05 AM)Sama34 Wrote: [ -> ]Why two threads?
He PM'd too.

I say ADHD
Oh I see, he is one of those kids.
Reference URL's