When I try this plugin code:
Code:
$modlinks = array("foo");
vB_Template::preRegister('header',array('modlinks' => $modlinks));
And your template code in the header template, I see "Test" appear in my header. So that would seem to indicate that the query is failing. I don't have any adv_links table in my database, so maybe that's changed? (Although I don't have it in my vb3.8.3 database either).