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)

ricker 08-09-2005 04:25 PM

Quote:

Originally Posted by Live Wire
I just installed this hack on my test board, and it's working fine. All post are showing up as they should. I tested with old threads that have mutiable pages, and a created 2 new threads that split into mutiable pages. Seems everything is working just fine for me.

Could it be possible that the posts are cached somehow?

Logikos 08-09-2005 04:28 PM

Your absolutely right Kirby, I didn't make it as first as 3 pages. Since the bug report said the first post on all pages. Thanks for that fix, works like a charm! :)

Andreas 08-09-2005 04:28 PM

@Boofo
See my edited Post ;)
Didn't notice in first place that there already was Code on this Hook.

Logikos 08-09-2005 04:30 PM

@boobflu

[Edit]nvm, Kirby answered for ya[/edit]

Andreas 08-09-2005 04:31 PM

Quote:

Originally Posted by Live Wire
@boobflu
replace all of it with Kirbys new code.

No. If you do that Postcounts will get messed up.

Logikos 08-09-2005 04:33 PM

Thanks Kirby, fixed and works :)

ricker 08-09-2005 04:40 PM

Quote:

Originally Posted by KirbyDE
Actually the last Post of every Page (that is not the first Page) disappears into Nirvana.
Explaining in detail why this does happen is not that easy, therefor i'll just post the fix :)

Hook: showthread_postbit_create
PHP Code:

if ($post['postid'] == $thread['firstpostid'] AND $vbulletin->GPC['pagenumber'] > 1)
{
    
$counter--;


Edit:
As this Hack already has Code on this Hook, replace that with
PHP Code:

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



Sorry, so what exactly are we supposed to do here? I found the code I just want to make sure I edit it correctly.

Andreas 08-09-2005 04:45 PM

As said, replace the Code that is currently on Hook showthread_postbit_create with the 2nd Code I posted (basically it's the first Code merged with the existing Code ;)).

ricker 08-09-2005 04:48 PM

Quote:

Originally Posted by KirbyDE
As said, replace the Code that is currently on Hook showthread_postbit_create with the 2nd Code I posted (basically it's the first Code merged with the existing Code ;)).

Merge! Ok, thanks so much, it seems to be working now.
Thanks for all ya'lls help with this, this is a great feature.

Boofo 08-09-2005 04:59 PM

Quote:

Originally Posted by KirbyDE
@Boofo
See my edited Post ;)
Didn't notice in first place that there already was Code on this Hook.

LOL You posted that just a split second after I posted my question. Great minds think alike? ;)


All times are GMT. The time now is 04:56 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.01353 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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