How do I remove post title if its left blank?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikeee
    New Member
    • Oct 2002
    • 18

    How do I remove post title if its left blank?

    In showthread.php, every post has a table on top of the actual post itself, that displays the title of that post. This table shows up even if the user leaves the post title field blank. I'd like to only show it if the user enters something.

    Here is a sample from this forum I took.
    Attached Files
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    In your postbit, or postbit_legacy, template find
    Code:
    <if condition="$show['messageicon'] OR $post['title']">
    and replace with
    Code:
    <if condition="$post['title']">

    Comment

    • mikeee
      New Member
      • Oct 2002
      • 18

      #3
      Awesome thanks!!

      Comment

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