vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Remove Title & Message Icon From Replies (https://vborg.vbsupport.ru/showthread.php?t=89129)

the Sandman 05-10-2004 09:00 PM

Remove Title & Message Icon From Replies
 
If you would prefer not to have any titles or message icons on posts which are replies (that is, those which are not first posts in a thread) then use the following template modifications to get rid of them. This is the result of This Thread on vBulletin.com and This One on vBulletin.org.

After these modifications, first posts will have the thread title and message icon on top, but the rest of the posts will not. You will still get the normal newthread box when starting a new thread (including the title field and message icon selection box). However, when you reply to a thread, the newreply box no longer has a title field to fill in, nor does the message icon selection box appear. When you edit a post the title field and message icons will only appear for first posts, not replies.

Check out any thread at the Admin Zone to see this modification in action.

Remove the following code from the newreply template:

Code:

<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
<td>&nbsp;&nbsp;</td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->

And:

Code:

$posticons
Next, add the code in red to the postbit (and/or postbit_legacy) template:

Code:

                       
<!-- icon and title -->
<if condition="$post['postid'] == $thread['firstpostid']">
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" color="$stylevar[tborder_bgcolor]" />
<else /><br /> 
</if>
<!-- / icon and title -->

Now, add the code in red to the editpost template here:

Code:


<!-- subject field -->
<if condition="$show['firstpostnote']">
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr><td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
<td>&nbsp;&nbsp;</td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
</if>
<!-- / subject field -->

And here:

Code:


<if condition="$show['firstpostnote']">
$posticons
</if>


msimplay 05-11-2004 03:52 PM

very good modification i used it myself
just one little thing i added to that was

remove

$posticons from new reply

or if you don't want to remove it use the same code as in editpost for post icons


<if condition="$show['firstpostnote']">
$posticons
</if>



now all i need it searching by post icon :)

the Sandman 05-11-2004 04:05 PM

I did take $posticons out of my newreply template but I forgot to mention it... Thanks!

gmarik 05-22-2004 07:00 AM

rather interesting one

Ryan Ashbrook 05-22-2004 06:54 PM

Nice, I think I'll use this. :)

Mechanical Mind 12-18-2004 12:12 PM

* clicks install *

This is the best hack in the world. :)

Almotmaiz.Net 05-26-2005 05:32 AM

nice work ,, thanx

Gutspiller 08-01-2005 06:44 PM

This could also be put under speed optimizing.

Yorixz 08-03-2005 06:38 AM

A great mod, thanks a lot!

bigcurt 08-03-2005 11:02 AM

Good job SandMan

~Curt


All times are GMT. The time now is 04:24 PM.

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.01536 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete