![]() |
How to exclude multiple forums/threads using if condition?
Does anyone here know how to exclude mulitiple forums/threads?
I am trying to place ads on all forums except certain forums. I know how to exclude each forum for the code to show but I don't know how to include all but certain forums... Example of the code to exclude all but certain forums... For Forums... Code:
<if condition="in_array($forumid, array(5,7,6,8,9,12,10,11,14,16,13,15,18,19,20,17,66))"> Code:
<if condition="in_array($thread['forumid'], array( What I need though is to include the code in all forums and threads except for certain forums/threads. Can anyone give me the code? I have been trying real hard to try to find the code but to no avail. Please help. Thank you in advance.:D |
I think you just want to negate your condition using "!",
Code:
<if condition="!in_array($thread['forumid'], array(5,7,6,8,9,12,10,11,14,16,13,15,18,19,20,17,66 |
Thank you kh99. It worked. :)
|
All times are GMT. The time now is 11:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|