Not Solved PHP in Templates and Template Conditionals
#77
Not Solved
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:

<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.
vBulletin/Wordpress/Magento/MyBB
Developer and Designer
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by Rafael - 2010-02-06, 04:44 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 88 Guest(s)