$myplugin_output = "This is my plugin";
$myplugin_output would then be referenced within the appropriate template.
With vBulletin 4, a little extra work is necessary to get your custom text to appear within your forum. You must now reference which templates you want to push these variables to or vBulletin will ignore them completely.
If you wanted to reference this variable within the template header, you would need to include the following somewhere within my plugin code after the variable was set.
vB_Template:

If you wanted to push this variable to multiple templates, you would need to include multiple versions of this line within your plugin. For example, if you wanted to push this variable to your FORUMHOME template in addition to header, you would need to add the following lines to your plugin code.
vB_Template:

vB_Template:

If you wanted to reference multiple variables within one template, you would just add to the existing array.
vB_Template:

'myplugin_output' => $myplugin_output,
'myplugin_output' => $myplugin_output2,
'myplugin_output' => $myplugin_output3,
);
Back to Part One: http://www.vbulletin.com/forum/entry...etin-templates
On the other hand, I've a question:
I could parse the template later in the execution, cache it and then read the from the cache when I want to preRegister the variable or simply insert the template-code in the template where I want it (not in its own template). But none of those solutions appeal to me.