Announcement

Collapse
No announcement yet.

Nodeid conditional code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Joe D.
    replied
    Hello,
    Not all variables are available in all templates. Custom coding like this is not actually part of official support- I suggest you also open a thread on vBulletin.org which is the better site to ask for help with custom coding questions.

    Leave a comment:


  • SiFor
    replied
    Can I please get some assistance with this template conditional code?

    Leave a comment:


  • SiFor
    replied
    I tried both variations but cant seem to get it to work.
    Code:
     
     <vb:if condition="$GLOBALS['nodeid'] != 70">custom code here</vb:if>  
     <vb:if condition="$GLOBALS['nodeid'] == 70">custom code here</vb:if>
    I still need help to get this working in the "display_Forums_item" template.

    thanks.

    Leave a comment:


  • SiFor
    replied
    That doesnt work for me:

    Code:
    <vb:if condition="$GLOBALS['nodeid'] == 70">custom code here</vb:if>

    Leave a comment:


  • Zachery
    replied
    Try $GLOBALS[nodeid]

    Leave a comment:


  • SiFor
    started a topic Nodeid conditional code

    Nodeid conditional 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>
    and

    Code:
    <vb:if condition="$channel['nodeid']== 70">custom code here</vb:if>
    but neither don't seem to work, what is the correct condition code for this?

    Thanks.

Related Topics

Collapse

Working...
X