Log in

View Full Version : postbit for first post, legacy for rest


Arkidas
05-22-2008, 01:25 PM
I know there's a mod for this but I can't find it. Like the title is, I need a mod that makes first of a thread use the postbit template but the rest of the posts use the postbit_legacy template.

veenuisthebest
05-22-2008, 01:35 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=158567&highlight=postbit_legacy" target="_blank">Thread as postbit and Reply as postbit_legacy</a>

test it first

Lynne
05-22-2008, 02:40 PM
Or, create a plugin at "postbit_display_complete" with the following:

if ( $post['postid']==$this->thread['firstpostid'])
{
$this->templatename = 'postbit';
}
and set vboptions > Style & Language Settings > Use Legacy (Vertical) Postbit Template > Yes

Arkidas
05-22-2008, 03:14 PM
It doesn't work Lynne, it will only display all posts as legacy. It's not a problem with my style ( tried default style ) so I think you may have made a mistake while typing that plugin code for me.