Announcement

Collapse
No announcement yet.

Nodeid conditional code

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

  • 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.
    CertForums.com Help, Advice and Resources to Pass Your Certification

  • #2
    Try $GLOBALS[nodeid]

    Comment


    • #3
      That doesnt work for me:

      Code:
      <vb:if condition="$GLOBALS['nodeid'] == 70">custom code here</vb:if>
      CertForums.com Help, Advice and Resources to Pass Your Certification

      Comment


      • #4
        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.
        CertForums.com Help, Advice and Resources to Pass Your Certification

        Comment


        • #5
          Can I please get some assistance with this template conditional code?
          CertForums.com Help, Advice and Resources to Pass Your Certification

          Comment


          • #6
            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.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X