Conditional needed for ForumHome and Threadview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marvin Hlavac
    Member
    • Sep 2007
    • 98

    Conditional needed for ForumHome and Threadview

    I would like my Guest Notice not to appear on ForumHome and Threadview. What would be the conditional to use to prevent some code to appear on ForumHome and Threadview?
  • Marvin Hlavac
    Member
    • Sep 2007
    • 98

    #2
    Mistake... Sorry... I meant ForumHome & ForumDisplay (not ThreadView)
    Last edited by Marvin Hlavac; Thu 16 Jul '09, 1:05pm.

    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      You can wrap a condition around it:

      HTML Code:
      <if condition="THIS_SCRIPT != 'index' AND THIS_SCRIPT != 'forumdisplay'">
      guest notice
      </if>
      (Not tested, but I think it should work.)

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools &lt;- awesome site for html/css help

      Comment

      • Marvin Hlavac
        Member
        • Sep 2007
        • 98

        #4
        Lynne, yes, I'm sure this is it! Thanks so much. I'm going to add it to my navbar template now!

        Comment

        • Marvin Hlavac
          Member
          • Sep 2007
          • 98

          #5
          I just added the code to my navbar template. It does exactly what I wanted. I thank you again very much, Lynne.

          Comment

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