Quote:
Originally Posted by Murtific
elaborate on initializing $templater?
|
In the code you originally posted in the article thread you had:
PHP Code:
$templater = vB_Template::create('threads');
$templater->register('zthreadid', $zthreadid);
$templater->register('zlink', $zlink);
$templater->register('zdateline', $zdateline);
$zlink2['$zlink'] = $templater->render();
vB_Template::preRegister('header',array('zlink2' => $zlink2));
so you can see that the first line is creating a vB_Template object. In the code above you don't have that line but you're still using $templater as if it were set to an object.
Quote:
i added that and still doesn't work.
white page.
|
A white page usually means there's some error in the code (I suppose that's obvious), but it's hard to debug code just by looking at part of it. I don't see anything wrong with what you posted (maybe someone else will).
Are you using a plugin or still working in forum.php?