vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   First post thread title & stylevariables (https://vborg.vbsupport.ru/showthread.php?t=256652)

IrvingvB 01-06-2011 10:27 PM

First post thread title & stylevariables
 
Hello all,

This topic was also opened in another subforum (sorry for that), but I realize now that this subforum is more suitable for my question. I have two questions concerning the following:
- How do I remove the thread title in the first post? I already tried

AdminCP -> vBulletin Options -> Message Posting and Editing Options -> Automatically Quote Post / Thread Title -> No

And it indeed removes the thread titles from all posts, except from the first one.

Example:
http://www.forummers.nl/images/pompom.jpg

- Is there somewhere a lists to see which style variables are not used (and are these deleteable?). That would make my overview a lot better when I want to adjust the colours. For example, I don't know where to find the style variable that changes the color of sticky subjects in forumdisplay.php. I've been altering my whole style, but this variable I can't find for some reason.

Example: http://www.forummers.nl/images/pompom2.jpg

IrvingvB 01-20-2011 01:20 AM

The second problem is fixed, but the first one is still open though. Where can I delete the topic title from the first post, which is automatically added?

TheLastSuperman 01-20-2011 02:25 AM

Quote:

Originally Posted by IrvingvB (Post 2151777)
The second problem is fixed, but the first one is still open though. Where can I delete the topic title from the first post, which is automatically added?

Edit the template posbit_legacy and find:

Code:

                <vb:if condition="$post['title'] OR $show['messageicon']">
                <h2 class="posttitle 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>

Replace with:

Code:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<vb:comment>Removed icon and title from first post</vb:comment>
<vb:else />
                <vb:if condition="$post['title'] OR $show['messageicon']">
                <h2 class="posttitle 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>

Should do the trick :D.

_____________________________________

Just in case anyone wants to know about the postbit template versus the postbit_legacy template....

Edit template posbit, find:

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>

Replace with:

Code:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<vb:comment>Removed icon and title from first post</vb:comment>
<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>



All times are GMT. The time now is 06:39 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.01811 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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