Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 <if statements ?
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #7
RE: <if statements ?
worked like charm, rateu

i thought in different way <if $GLOBALS['mybb']->user['usergroup'] != 5 && $GLOBALS['mybb']->user['usergroup'] != 7 then> Text </if>

using && did the work. but your code is very simple to add any number of gids easily in array. i will make use of your code. initially leefish helped with her code
<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 5 || $GLOBALS['mybb']->user['usergroup'] == 6 then> stuff for usergroup 4,5,6</if>
which will be long if we want to use more codes. but using your array code, the length is decreased alot and simple. Smile
10-13-2010 06:59 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
<if statements ? - 1master1 - 10-12-2010, 11:24 AM
RE: <if statements ? - leefish - 10-12-2010, 12:21 PM
RE: <if statements ? - 1master1 - 10-13-2010, 06:03 AM
RE: <if statements ? - RateU - 10-13-2010, 06:40 AM
RE: <if statements ? - 1master1 - 10-13-2010, 06:45 AM
RE: <if statements ? - RateU - 10-13-2010, 06:54 AM
RE: <if statements ? - 1master1 - 10-13-2010 06:59 AM

 Standard Tools
Forum Jump: