Announcement

Collapse
No announcement yet.

Simple IF statement to display text in certain forum only?

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

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

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

    Comment


    • #3
      Originally posted by Zachery View Post
      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


      • #4
        You should be able to use something like:

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

        Comment


        • #5
          Originally posted by Zachery View Post
          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...
          X