No article is going to tell you what hook location to use. Go into debug mode and look at the list on the bottom of the page and use one of those. Better yet, find the area in the code you are need to target (in this case, your target is prior to the rendering of the header template, so find where it is rendered) and look for a hook that is rendered before that. And that article gives you an example of the code to preregister your variable right near the end:
Save into an array and preregister to use in an existing/stock template
PHP Code:
$templater = vB_Template::create('mytemplate');
$templater->register('my_var', $my_var);
$templater->register('my_array', $my_array);
$templatevalues['my_insertvar'] = $templater->render();
vB_Template::preRegister('FORUMHOME', $templatevalues);