Add parameter in tplcond-1.6
demmnic Offline
Junior Member
**
Posts: 3
Joined: Sep 2012
Post: #1
Add parameter in tplcond-1.6
<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>
09-05-2012 03:52 AM
Find all posts by this user Quote this message in a reply
Gstone Offline
Member
***
Posts: 55
Joined: May 2012
Post: #2
RE: Add parameter in tplcond-1.6
<if !in_array($GLOBALS['mybb']->user['usergroup'], array(10,12,23)) then>
09-05-2012 04:03 AM
Find all posts by this user Quote this message in a reply
demmnic Offline
Junior Member
**
Posts: 3
Joined: Sep 2012
Post: #3
RE: Add parameter in tplcond-1.6
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.
(This post was last modified: 09-08-2012 11:23 PM by demmnic.)
09-05-2012 06:13 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: