vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to remove the title in a post (https://vborg.vbsupport.ru/showthread.php?t=263024)

av8or1 05-03-2011 03:25 AM

How to remove the title in a post
 
1 Attachment(s)
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!

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>


Andy 05-03-2011 03:49 AM

Here you go. Do this in the postbit_legacy template.

Code:

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

Quote:

Originally Posted by Staxed (Post 2191321)
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


All times are GMT. The time now is 07:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01626 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete