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 ;)


All times are GMT. The time now is 11:08 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.01388 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_printable
  • (3)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