vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   First post on every page of thread. (https://vborg.vbsupport.ru/showthread.php?t=93706)

kent_lkc 08-29-2009 04:04 PM

which part ? :)

CGhostGroup 09-01-2009 07:08 PM

All of it, searching for something like that too :D

kent_lkc 09-02-2009 07:28 PM

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. :p

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.

GTX2 12-10-2009 11:54 PM

i got it working but the first post now has lower lenght than all other posts.. !!
any hint?

iraqiboy90 11-17-2012 02:46 PM

is there anything like this for vb 4.x.x?

Bro_Joey_Gowdy 11-21-2012 01:15 PM

Quote:

Originally Posted by iraqiboy90 (Post 2381921)
is there anything like this for vb 4.x.x?

Yes, it can be found here:

https://vborg.vbsupport.ru/showthread.php?t=239282

:)

scriptycan 10-18-2013 02:42 PM

Hi is there a version that will work on vb 5?


All times are GMT. The time now is 11:13 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.01400 seconds
  • Memory Usage 1,751KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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