vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show postbit in first post only ! (https://vborg.vbsupport.ru/showthread.php?t=215730)

Subah 06-09-2009 08:16 AM

Show postbit in first post only !
 
Hello,
i have customes postbit and postbit legacy , is there any code i can put it in the template to use my postbit for the first post only and the postbit lagecy for the other post`s ?

Lynne 06-09-2009 02:19 PM

Set your default to be postbit_legacy and then try this...

hook location - postbit_display_complete:
PHP Code:

if ($post['postid']==$this->thread['firstpostid'])
{
$this->templatename 'postbit';



Subah 06-09-2009 04:30 PM

Hello Lynne,
thank you for your help but it is not work :(
it is shown always postbit_legacy !

Lynne 06-09-2009 07:04 PM

You could have a conflicting mod, in which case you may have to change the order. Did you make sure it was turned on? That was just the real easy way to do it, you can also look for a modification called Chief First Post which has several other options built into it.

Subah 06-10-2009 09:59 AM

i`am sure it is turned on , the chief first post great mod but i do not like to make it in every page i nedd only the first post

Lynne 06-10-2009 01:05 PM

I'm not sure what else to suggest. It works just fine for me on my test site. I did have a conflicting mod (I allow users to choose their postbit), but I just changed the order on the plugin and then it worked just fine. Could it be your post cache? Turn it on and grab and old thread noone has read in ages and see if it works.


All times are GMT. The time now is 03:00 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.02441 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete