View Single Post
  #344  
Old 09-02-2009, 07:28 PM
kent_lkc kent_lkc is offline
 
Join Date: Feb 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

everything do exactly as this MOD then do alteration as below:-

(I would like to apologize for bad English and i'm not a coder)

In this case, changes made to postbit_first
Original template of postbit_first was duplicate from postbit_legacy, so, it looks like below:-

Code:
$template_hook[postbit_start]
blah . . .blah . . blah...
.
.
.
.
.
	$template_hook[postbit_user_popup]
	</table>
</div>
<!-- / post $post[postid] popup menu -->
Duplicate above scripts as shown below:-
Red color texts are those i added.
Code:
$template_hook[postbit_start]
 <if condition="$forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1">
<!-- first_post_stuck -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tbody>
 
	<tr>
		<td class="tcat" colspan="5">
			
			<a style="float:right" href="#top" onclick="return toggle_collapse('showfirstpost')"><img id="collapseimg_showfirstpost" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <span class="smallfont" style="float:$stylevar[right]">(<a href="#top" title="" onclick="return toggle_collapse('first_post'); return false; ">Collapse/Expand</a>)&nbsp;</span>			

     
			<div class="bigfont" align="center">Topic Discuss : <strong>$post[title]</strong></div>
			
		</td>
	</tr>
 
</tbody>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
    <tbody id="collapseobj_showfirstpost" style="">
<tr>
blah . . .blah . . blah...
.
.
.
.
.
	$template_hook[postbit_user_popup]
	</table>
</div>
<!-- / post $post[postid] popup menu -->

</tbody>
</table></if>
<!-- /first_post_stuck -->

 <if condition="$forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] < 2">
$template_hook[postbit_start]
blah . . .blah . . blah...
.
.
.
.
.
	$template_hook[postbit_user_popup]
	</table>
</div>
<!-- / post $post[postid] popup menu -->
</if>
Below :-$template_hook[postbit_signature_end]
Code:
		$template_hook[postbit_signature_end]

		<if condition="$show['postedited']">
		<!-- edit note -->
			<div class="smallfont">
				<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
				<em>
					<if condition="$show['postedithistory']">
						<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
					<else />
						<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
					</if>
					<if condition="$post['edit_reason']">
						$vbphrase[reason]: $post[edit_reason]
					</if>
				</em>
			</div>
		<!-- / edit note -->
Replace with:-
Code:
		$template_hook[postbit_signature_end]
		<!-- Information -->
			<div class="smallfont">
				<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
				<em>
      <table border="0" cellpadding="0" cellspacing="0"> 
        <tr> 
          <td> 
            <a href=""><img src="http://www.yourdomain.com/images/attention.png" width="32" height="32" border="0" alt="Information" title="Information" /></a> 
          </td> 
          <td>&nbsp;&nbsp;&nbsp;</td> 
          <td style="font-weight:bold;"> 
            <a href="">Information</a><br /><span style="font-weight:normal;font-size:90%;color:#8BFF4D;line-height:200%;">This is the first post of the thread you are reading.  It will appear at the top of every page.!</span> 
          </td> 
        </tr> 
      </table> 
				</em>
			</div>

		<!-- / Information -->
Change www.yourdomain.com to your site URL and upload attention.png to images folder.

That's the best i can explain.

Attached a copy of png format image and my edited postbit_first for your reference.

Typically upper portion of postbit_first, whatever you don't want to display can be deleted.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01037 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete