Quote:
Originally Posted by ExcelFox
Strange. Though I don't know how GLOBALS and foruminfo are different, I was also under the impression that foruminfo should work. For some reason, <vb:if condition="$foruminfo[forumid]>0">yes</vb:if> doesn't work for me!!
--------------- Added [DATE]1368310619[/DATE] at [TIME]1368310619[/TIME] ---------------
You sure you're testing it within the BBCODE? For the life of me, I cannot get $foruminfo[forumid] to work!!!
|
This is the html I'm using for [experiment] kkk [/experiment]
Code:
<div>{param}<vb:if conditon="$foruminfo[forumid]>0"> yes</vb:if> $foruminfo[forumid]</div>
I get
kkk yes $foruminfo[forumid]
--------------- Added [DATE]1368315733[/DATE] at [TIME]1368315733[/TIME] ---------------
Quote:
Originally Posted by kh99
BTW, in_array() is allowed in a template conditional (according to the manual anyway).
|
Maybe it was vB3 that didn't allow that