PDA

View Full Version : Show postbit in first post only !


Subah
06-09-2009, 09:16 AM
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, 03:19 PM
Set your default to be postbit_legacy and then try this...

hook location - postbit_display_complete:
if ($post['postid']==$this->thread['firstpostid'])
{
$this->templatename = 'postbit';
}

Subah
06-09-2009, 05:30 PM
Hello Lynne,
thank you for your help but it is not work :(
it is shown always postbit_legacy !

Lynne
06-09-2009, 08: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, 10: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, 02: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.