Quote:
Originally Posted by Exitilus
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
|
try this
PHP Code:
if (THIS_SCRIPT == 'groupsdiscussion')
{
$handled_type = TRUE;
$out =& new vB_Postbit_Post();
$out->templatename = 'postbit_groups';
$out->registry =& $this->registry;
$out->forum =& $this->forum;
$out->thread =& $this->thread;
$out->cache =& $this->cache;
$out->bbcode_parser =& $this->bbcode_parser;
return $out;
}