MyBB Codes

Full Version: [FREE] How To Array condition in MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I want to add a condition to a content in the header of MyBB.

I have enabled the PHP and templates conditionals and I need to add the code manyally, here is the code:

PHP Code:[Highlight]
<if condition="!in_array($GLOBALS[forumid],array(2))">
Here is the content.
</if> 

What I want to do is enable the code with the exception of the array code in this case 2.

Thanks.
Reference URL's