The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Adding quick moderation to header template
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)); Code:
<vb:if condition="$modlinks">Test</vb:if> 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! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|