Remove report post button in one forum?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thegunowner149
    Senior Member
    • Feb 2004
    • 252
    • 2.3.4

    Remove report post button in one forum?

    How can I remove the report post button in just one forum? I'm using the postbit legacy and the forum id is 3. I tried various if statements but can't seem to get it to work.

    Thank you for any help.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Try surrounding it with this condition:

    Code:
    <if condition="$GLOBALS[forumid] != X">
    
    </if>
    Where X is the forumid of the forum you want to exclude.

    Comment

    • EskoASU
      Member
      • Sep 2004
      • 64
      • 3.0.0 'Gold'

      #3
      what about if you only want something in one forum? would you have to list all the forum ids or is there another one that could make it exclude all but one

      Comment

      • thegunowner149
        Senior Member
        • Feb 2004
        • 252
        • 2.3.4

        #4
        Globals huh? Just when I thought I was slowly beginning to get the hang of this stuff you guys throw that one at me

        Regardless, it worked. Thanks for your help good sir!

        Comment

        • thegunowner149
          Senior Member
          • Feb 2004
          • 252
          • 2.3.4

          #5
          Originally posted by EskoASU
          what about if you only want something in one forum? would you have to list all the forum ids or is there another one that could make it exclude all but one
          I'm guessing this would work:

          Code:
          <if condition="$GLOBALS[forumid] == X">
          
          </if>
          But don't take my word for it, I had to ask for help myself

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Originally posted by thegunowner149
            I'm guessing this would work:

            Code:
            <if condition="$GLOBALS[forumid] == X">
            
            </if>
            Yep.

            Comment

            • EskoASU
              Member
              • Sep 2004
              • 64
              • 3.0.0 'Gold'

              #7
              garcias....

              Comment

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