Here’s another good code snippet. vBulletin allows for post titles, but users very rarely actually use this. Thing is, vBulletin displays the post title area even if there’s not one set. You wind up with what looks like either a signature out of place or a missing bit of text. I decided to remove this, but wasn’t able to find anywhere online where folks had mentioned how to. It’s fairly easy

In the postbit_legacy template, find the following code:

<vb:if condition="$post['title'] OR $show['messageicon']">
    <h2 class="title icon">
    <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /></vb:if>{vb:raw post.title}</h2>
  </vb:if>

and replace it with:

<vb:if condition="$post['title']==''"><vb:else />
  <vb:if condition="$post['title'] OR $show['messageicon']">
    <h2 class="title icon">
    <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /></vb:if>{vb:raw post.title}</h2>
  </vb:if>
</vb:if>

That’s it! All we’re doing is adding an additional if around the existing one, saying “if the post title == ” (nothing), don’t display the post title area.”

About Kyle Matthews

Kyle Matthews is an internet entrepreneur, musician, and amateur photographer. He lives in Tampa, FL (but hails from Seattle, WA) with his wife and son.