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)

ahtum 08-22-2007 10:24 PM

So i'm using 3.6.5 and when I install this and enable it, the first post completely disappears.

cuphongle 08-24-2007 06:30 PM

Quote:

Originally Posted by ahtum (Post 1323558)
So i'm using 3.6.5 and when I install this and enable it, the first post completely disappears.

maybe because you need to create a new template called "posbit_first"
and then copy the stuff on "posbit" or "posbit_legacy" and paste it in there.

and bam...it should be good!

pxd 10-11-2007 04:57 PM

What are the changes from the previous version? Any important ones that I should upgrade to?

accessdeniedzzz 02-01-2008 08:14 PM

Possible to add collapse??

Saskia 03-05-2008 11:51 PM

Quote:

Originally Posted by accessdeniedzzz (Post 1434183)
Possible to add collapse??

I'd say just add a collapse code to the postbit_first template if you want it to collapse, no?

If you don't know the code, just take a look at any vB template (for instance forumhome) for how the collapse code functions :). Good luck.

Fraxter 05-15-2008 06:51 PM

Mhmm, not working on 3.7? I don?t see another hack for 3.7 for this... :(

MissKalunji 05-15-2008 07:04 PM

yeah it works fine :-/

You can try this one too :
https://vborg.vbsupport.ru/showthrea...=178331&page=5

arena 05-22-2008 12:16 PM

3.7 woking

Super Jinni 05-31-2008 09:19 AM

can anyone -please- tell me how to make the options to turn this hack on/off from the create new thread page not from the forum options so that I can enable some this hack for some threads and disable it for others in the same forum?

high76 08-16-2008 09:24 PM

Quote:

Originally Posted by craiovaforum (Post 1281071)
I managed to do this this way:

AdminCP->Plugins & Products->Plugin Manager

edit: Show First Post from hook location: postbit_display_complete

Modify the PHP code like this:

Code:

if ($this->forum['showfirstpost']==1 AND $post['postid']==$this->thread['firstpostid'] AND $vbulletin->GPC['pagenumber'] > 1){
$this->templatename = 'postbit_first';
}

This way, the plugin is used for all the pages except the first page, where it's used the normal vB postbit template.

Sadly this hack doesnt seem to work properly on latest 3.7.2, the mod itself works fine. postbit_first is never used this way, all pages use the normal postbit. Anyone knows whats the problem here with the
Code:

AND $vbulletin->GPC['pagenumber'] > 1
code?

EDIT: solved...
Code:

AND $_REQUEST['pagenumber'] > 1
works ;)

Mysterious Ride 08-25-2008 04:36 PM

I install this so the first post can be on all pages and the option is up the Manage for option, but with I click it to yes show first post on all pages it doesn't show the first post at all on any of my thread already up. Not sure what to do.

Mysterious Ride 08-25-2008 06:30 PM

Nevermind I got it to work. ^.^

Gemilang 02-04-2009 12:04 PM

Can this work on a per-thread basis?

MissKalunji 02-04-2009 02:42 PM

I believe the one for 3.7 does

SDonkey 03-31-2009 02:07 PM

I've upgrade to 3.82. With this plugin installed. It doesn't show 1st post at all.

I've uninstalled. No good -

This plugin need to be fixed on the newer version.

RTMdotORG 04-15-2009 07:57 PM

works on my 3.8

kent_lkc 07-02-2009 04:47 PM

verified by me working like a charm on vB 3.8.3 . . . good job.
see for yourself >> http://www.motoxtreme.info

rrudeboy 07-09-2009 04:20 PM

*great* mod... would dig it even more if it was also possible to set it per thread.

kent_lkc 07-24-2009 10:11 AM

Enhanced this MOD with more comfortable reading it on vB 3.8.3.

check out here,

http://www.motoxtreme.info/showthread.php?t=1702&page=2

ConKien 08-23-2009 04:29 PM

Quote:

Originally Posted by kent_lkc (Post 1854575)
Enhanced this MOD with more comfortable reading it on vB 3.8.3.

check out here,

http://www.motoxtreme.info/showthread.php?t=1702&page=2


Would you mind share your enhanced mod for us Kent?

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 04:39 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.01591 seconds
  • Memory Usage 1,814KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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