L2V
01-05-2010, 06:39 PM
I am still trying to wrap my head around the new changes in vb4. One of my first projects is to get a plug-in used in vb3.8 to work in 4. The plug-in was taken from this thread (http://www.vbulletin.com/forum/showthread.php?305913-Different-format-for-first-post) at vb.com.
Essentially, I have a new template called postbit-firstpost that is used for the first post in a thread (not first post of a page but for the thread's start post). The code from 3.8 uses the postbit_display_complete hook and is:
if ($post['postid']==$this->thread['firstpostid'])
{
$this->templatename = 'postbit_firstpost';
}
So what changes are required to get this working again in vb4? I'm not afraid of doing my own homework either so pointers to relevant info would be just as appreciated as a fix. The stuff I am reading through now makes me feel overwhelmed and unsure of where to begin.
UPDATE: I'm an idiot... It is still working. :D
Essentially, I have a new template called postbit-firstpost that is used for the first post in a thread (not first post of a page but for the thread's start post). The code from 3.8 uses the postbit_display_complete hook and is:
if ($post['postid']==$this->thread['firstpostid'])
{
$this->templatename = 'postbit_firstpost';
}
So what changes are required to get this working again in vb4? I'm not afraid of doing my own homework either so pointers to relevant info would be just as appreciated as a fix. The stuff I am reading through now makes me feel overwhelmed and unsure of where to begin.
UPDATE: I'm an idiot... It is still working. :D