Announcement

Collapse
No announcement yet.

Message above a thread please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pain
    Member
    • Nov 2003
    • 78

    Message above a thread please help

    I would like to add message above a specific thread. I have seen this done but have no clue how to do this. Can i get some advise how to do this please..
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You can use a template conditional in the showthread template that checks against the thread's info threadid number.
    Code:
    <if condition="$threadinfo['threadid'] == '5'"></if>
    Replace 5.

    Comment

    • pain
      Member
      • Nov 2003
      • 78

      #3
      Thanks but could you please explain this a little better for me.. Thank you!!

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        Open the template, put this code in the right spot, And in between the if conditional add your block of msg.

        "><div>Hello this is a msg</div></if>

        Comment

        • pain
          Member
          • Nov 2003
          • 78

          #5
          Thanks.. I found this in the newthread template.

          HTML Code:
          <!--ADDED RULES CODE - CHRIS BURGESS 5/18/7-->
          <if condition="($forumid == 20) ||($forumid == 82) || ($forumid == 21) || ($forumid == 66) || ($forumid == 75)"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <tr>
              <td class="tcat">
                  <span class="smallfont"><strong>B/S/T Rules</strong>
              </td>
          </tr>
          <tr>
          HTML TEXT WAS HERE
          </ol></font></td></tr></table><br></if>
          <!--END ADDED RULES CODE-->
          But when I remove this the HTML text stayed above the thread. Also one of the thread ID was 91 and it wasn't even included with this code.. I dont get this at all.. I'm going crazzy here...

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎