Here's the exact code i'm using - hook location is threadbit_display
PHP Code:
$test_value = "It Works!";
$templater = vB_Template::create('threadworks');
$templater->register('custom_template', $test_value);
$custom_template = $templater->render();
vB_Template::preRegister('threadbit', array('threadworks' => $custom_template));
(I'm trying to port the Threadworks mod to VB4 )