PDA

View Full Version : How to remove the title in a post


av8or1
05-03-2011, 03:25 AM
Hi-

I attempted a search for this, but was told that my search terms were less than 3 characters in length...strange error. It occurs on vbulletin.org sometimes, not others. But I digress.

Anyway. My question is how do I remove the title from appearing in the first post in a thread? The attached picture illustrates the culprit in question. I found this in the ~install/vbulletin-style.xml file, presumably part of the postbit_legacy stuff, but when I deleted the lines from the file, the title continued to appear. So I must be missing something simple and obvious...

Any ideas on how to disable the following variables shown in this if statement? Thanks!

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

Andy
05-03-2011, 03:49 AM
Here you go. Do this in the postbit_legacy template.


<!-- remove post title -->
<!--

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

-->

Staxed
05-03-2011, 01:10 PM
Andy already helped you with your issue, but quick info about the search.

It's not an error on vb.org, that's how the search function is set here. If there are any words less than 3 letters in the search, it won't accept it (because it would return way too many results usually). So if you searched for "How to remove the title in a post" that is why it errored out. You should search instead for "How remove title post"

just some useful information for the future hopefully :)

av8or1
05-03-2011, 01:36 PM
Andy already helped you with your issue, but quick info about the search.

It's not an error on vb.org, that's how the search function is set here. If there are any words less than 3 letters in the search, it won't accept it (because it would return way too many results usually). So if you searched for "How to remove the title in a post" that is why it errored out. You should search instead for "How remove title post"

just some useful information for the future hopefully :)

Ah, that explains it, thanks. It would help if I actually read the error message more closely wouldn't it? Sheesh, sorry about that. What can I say - it was late and I had been working on a mod/app/whatever for several hours by then...

Thanks to Andy for the help too. I was hoping for an option that I could toggle via the admincp rather than needing to modify the code, but oh well. Commenting those lines out in the template (didn't know where this was until late, late last night) did the trick: no more title in the first post of a thread.

Thanks again!

Jerry