The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Why aren't these conditionals working?
They work fine in 3.8.x, I added the "vb:" to them for 4.0.x but they don't work anymore... In fact they don't resolve to numbers at all, when I write "$thread[forumid]" in the template it just displays on the page "$thread[forumid]" instead of something like "2".
<vb:if condition="($foruminfo[forumid] == 2) AND ($thread[forumid] != 2)">[X]</vb:if> This is in the threadbit template... are these variables no longer available in threadbit? Edit- OK I see there is a new syntax for accessing these things in vb4 and boy does that suck big time... anyway Itried a couple things but no go, anything know how to translate the above to vb4? {vb:var thread.forumid} and such isn't working either. --------------- Added [DATE]1278208778[/DATE] at [TIME]1278208778[/TIME] --------------- Using this code: Code:
<if condition="({vb:var foruminfo.forumid} == 1) AND ({vb:var thread.forumid} != 1)"> [X]</vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|