I have a conditional statement that I'm using in multiple templates numerous times.
It contains an array of forum ids that I want to display differently than the standard forums.
Everything works well using this conditional:
Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array(23, 24, 25, 26, 27, 28, 49, 77))">
The probem I want to avoid is if I want to add another forum to this list, as of now I will have to go back, find, and then edit every single conditional individually.
I've tried to phrase the array like this:
Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array({vb:rawphase special_forums))">
But that just gives this error:
Quote:
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
|
Anyone have a solution?