Announcement

Collapse
No announcement yet.

Conditionals question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditionals question

    I have ads that display in showthread. I am trying to not show the ads in 2 forums. So far I have this, which works, but I want to add another forumid and its giving me errors. I'm not positive but I could probably add another condition for the second forum, but if someone could please tell me how to add other forums into that one condtion I would be grateful.

    This works:<if condition="$forum[forumid] != xx">

    This doesn't;<if condition="$forum[forumid] != xx,xx">

  • #2
    Use this format:

    Code:
    <if condition="!in_array($forum[forumid], array(xx,xx))">
    
    </if>

    Comment


    • #3
      Originally posted by Jake Bunce View Post
      Use this format:

      Code:
      <if condition="!in_array($forum[forumid], array(xx,xx))">
      
      </if>
      Thank you Jake! I assume I can add more forumsid's in there if needed, correct?

      Comment


      • #4
        Yes.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment

        Loading...
        Working...
        X