How to convert this template conditional to a php one ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cclaerhout
    Member
    • Aug 2004
    • 63
    • 3.5.x

    How to convert this template conditional to a php one ?

    I'd like to make a test. How can i convert this template conditional to a php one ?

    HTML Code:
        <if condition="in_array($GLOBALS[forumid], array(16,17,18,19,20,21,22,32)) AND !in_array($bbuserinfo[usergroupid], array(5,6,7))">
    Thank you
  • feldon23
    Senior Member
    • Nov 2001
    • 11291
    • 3.7.x

    #2
    Code:
    [B][COLOR=Lime]if ( [/COLOR][/B]in_array($GLOBALS[forumid], array(16,17,18,19,20,21,22,32)) AND 
    !in_array($bbuserinfo[usergroupid], array(5,6,7)) [B][COLOR=Lime]) {[/COLOR][/B]
    and in place of </if>, you'll want }

    Comment

    • cclaerhout
      Member
      • Aug 2004
      • 63
      • 3.5.x

      #3
      Thank you ; now i can begin my tests

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎