MyBB Codes
[FREE] How To Array condition in MyBB - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42)
+--- Forum: Help Wanted (not for support) (/forumdisplay.php?fid=53)
+--- Thread: [FREE] How To Array condition in MyBB (/showthread.php?tid=1200)


[FREE] How To Array condition in MyBB - Rafael_mybb_import479 - 02-05-2010 11:50 AM

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.