View Full Version : Multiple !THIS_SCRIPT
Daniel
04-09-2015, 02:06 AM
Hi friends,
Can someone fix this for me please? :D
<vb:elseif condition="!in_array($this_script['THIS_SCRIPT'], array('vbcms','index','blog'))">
Hello
</vb:if>
Thanks for the help. :)
Fields
04-09-2015, 04:03 AM
Try this:
<vb:elseif condition="!in_array(THIS_SCRIPT, array('vbcms', 'index', 'blog'))">
Hello
</vb:if>
Daniel
04-09-2015, 04:25 AM
That code doesn't seem to be valid.
Mark.B
04-09-2015, 04:43 AM
Try this:
<vb:elseif condition="!in_array(THIS_SCRIPT, array('vbcms', 'index', 'blog'))" />
Hello
</vb:if>
Daniel
04-09-2015, 04:56 AM
Ding ding ding. That worked. Thanks Mark.B and Fields!!! It's always that trailing slash, isn't it? :P
Fields
04-09-2015, 06:59 AM
Oops, my bad, I'm sorry :D
Mark.B
04-09-2015, 05:09 PM
It's very easy to miss stuff off like that, because it's difficult to work out when there should be one and when there shouldn't.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.