Quote:
Originally Posted by sabret00the
basically create a new template called 'exitilus_postbit' which should be a stripped down, vanilla version of your current postbit, or even just the original postbit that comes with vBulletin. and then create the plugin, the plugin hook is: 'postbit factory' with the contents from above.
PHP Code:
if (THIS_SCRIPT == 'groupsdiscussion')
{
$handled_type = TRUE;
$out = 'exitilus_postbit';
}
and then all should work.
|
I do appreciate the help you've given me. I've been playing around for a while with what you put and getting a couple of errors on line 328 of viewthread.php. Also I figured that I should also cache the template so I added it with the rest of them in viewthread.php.
Anyways if I use
PHP Code:
if (THIS_SCRIPT == 'groupsdiscussion')
{
$handled_type = TRUE;
$out = 'postbit_groups';
}
I get Fatal error: Call to a member function on a non-object in viewthread.php on line 327
If I use
PHP Code:
if (THIS_SCRIPT == 'groupsdiscussion')
{
$handled_type = true;
$out->templatename = 'postbit_groups';
}
Fatal error: Call to undefined function: construct_postbit() in viewthread.php on line 328