The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
First post on every page of thread. Details »» | |||||||||||||||||||||||||
I had a use for it, so I thought I would share it.
Requires no file edits (Thanks Kirby!). Adds no quarys when viewing threads This is something like here on vbulletin.org , it allows you to select forums where the first post of the thread is shown thru out the thread. It uses stock template looks now , if someone wishes to make a template and share it feel free. I will offer support as I can. Ps. If you install this hack please click the install :nervous: Templates for first post: https://vborg.vbsupport.ru/showpost....&postcount=124 https://vborg.vbsupport.ru/showpost....&postcount=161 Show Your Support
|
Comments |
#342
|
|||
|
|||
which part ?
|
#343
|
|||
|
|||
All of it, searching for something like that too
|
#344
|
|||
|
|||
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 -->
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>) </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> 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 --> 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> </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 --> 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. |
#345
|
|||
|
|||
i got it working but the first post now has lower lenght than all other posts.. !!
any hint? |
#346
|
|||
|
|||
is there anything like this for vb 4.x.x?
|
#347
|
||||
|
||||
|
#348
|
|||
|
|||
Hi is there a version that will work on vb 5?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|