Simple IF statement to display text in certain forum only?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Superorb
    Member
    • Feb 2012
    • 61
    • 4.2.X

    Simple IF statement to display text in certain forum only?

    I have a For Sale section on my forum and I'd like to insert "Required" next to the prefix dropdown box because people are complaining that they have to go back and add it even though it's mentioned elsewhere. I'd only like this text to be displayed in the For Sale New Post page and nowhere else on the site.

    <vb:if condition=($forumID=13)>Required</vb:if>

    I know I'm way off here with the above statement, but this is the gist of it I think. Please help me out.
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Why not add a notice, or announcement? Instead of messing with template edits?

    Comment

    • Superorb
      Member
      • Feb 2012
      • 61
      • 4.2.X

      #3
      Originally posted by Zachery
      Why not add a notice, or announcement? Instead of messing with template edits?
      Because I want to stick it right next to the Prefix dropdown so it's not missed. I already have it mentioned elsewhere and people still miss it and then complain about it.

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        You should be able to use something like:

        Code:
        <vb:if condition="$GLOBALS[forumid] == X">code here</vb:if>

        Comment

        • Superorb
          Member
          • Feb 2012
          • 61
          • 4.2.X

          #5
          Originally posted by Zachery
          You should be able to use something like:

          Code:
          <vb:if condition="$GLOBALS[forumid] == X">code here</vb:if>
          That did the trick, thanks!

          Comment

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