PDA

View Full Version : Postbit or Postbit Legacy Plugin


Wilfred1
09-01-2010, 09:37 AM
My forums are set to use Postbit_Legacy but I have one forum that I want to use the standard postbit for.

So I tried to do a plugin but not sure how to do it:

Hook Location: Postbit_display_complete

Code:
if ($vbulletin->forum['forumid'] != '4')
$this->templatename = 'postbit_legacy';
else
$this->templatename = 'postbit';

Can anyone advise what is the right code and hook location...thanks