The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Nodeid conditional template code
Im trying to add a conditional statement to the "display_Forums_item" template to display an icon next to one specific forum / node.
I have tried Code:
<vb:if condition="$channel['nodeid'] != 70">custom code here</vb:if> <vb:if condition="$channel['nodeid']== 70">custom code here</vb:if> Code:
<vb:if condition="$GLOBALS['nodeid'] != 70">custom code here</vb:if> <vb:if condition="$GLOBALS['nodeid'] == 70">custom code here</vb:if> Thanks. |
#2
|
||||
|
||||
It looks like $forum[nodeid] may be the variable to use as it looks like $forum is registered for use there.
|
#3
|
||||
|
||||
Thank you Lynne, that works.
How would I go about finding that out by myself or is there not a viable way to do that? |
#4
|
||||
|
||||
I just took a look at the template itself and looked to see what variables were being used there.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|