I'm trying to add everything back to a few of my sites since I've upgraded everything to vBulletin 4+...
I had all of my moderation links display in the header template if I had anything that needed to be moderated.
Basically, the idea is pretty much: Moderation link replaces logo if there are items to be moderated.
I'm currently using the following code in the global_start hook:
Code:
$modlinks = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "adv_links WHERE valid = 0");
vB_Template::preRegister('header',array('modlinks' => $modlinks));
This plugin doesn't seem to push the $modlinks variable through to the header template. I'm using this code in the header template:
Code:
<vb:if condition="$modlinks">Test</vb:if>
It doesn't work though, and I definitely have links that are in need of being moderated.
I have also tried the parse_templates hook, which works for some things, however, when using that hook instead of global_start... I get a blank page.
Any help would be appreciated!