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:50 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: Add parameter in tplcond-1.6

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?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 09-05-2012 05:05 AM by Sama34.)
09-05-2012 05:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: Add parameter in tplcond-1.6
(09-05-2012 05:05 AM)Sama34 Wrote:  Why two threads?
He PM'd too.

I say ADHD

My Blog
09-05-2012 08:14 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #4
RE: Add parameter in tplcond-1.6
Oh I see, he is one of those kids.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
09-05-2012 09:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: