The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
How to phrase part of a conditional statement?
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:
Anyone have a solution? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|