Sorry, I haven't had the time to get back to this but I'm trying again now.
I think I fixed my plugin code and my problem exists in calling the template. I've gone over the guide and I'm still unsure on how to call the template code to execute within the header template.
I took your suggestion and simplified it all.
testplugin code:
Code:
$test = "hello";
$templater = vB_Template::create('testplate');
$templater->register('test', $test);
$templater->render();
$vbulletin->templatecache['header'] .= eval('testplate');
I'm using eval(testplate) because I have it set on the forumhome_complete hook, as covered in a previous post.
testplate code:
Code:
<p>{vb:var test}</p>
header code portion:
Code:
<div id="lugianewscontent">
{vb:var testplate}
</div>
What am I doing wrong? The guide is a bit confusing so I did my best to follow it.
The end result is nothing at all. The lugianews div is simply blank. No error, no text, nothing.