OK, that does seem to almost work. I'm sure I'd tried it numerous times and it didn't work. I'm using the
global_start hook as I'm trying to add the template copy to custom header. This is my template I'm fetching....
HTML Code:
<if condition="$show['notifications']">
<b><a href="{$channel_fix}usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> $notifications_total</b>
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
<else />
<b><a href="{$channel_fix}private.php$session[sessionurl_q]">Private Messages</a>: $vbphrase[unread_x_nav_compiled], $vbphrase[total_x_nav_compiled].</b>
</if>
Only problem is the $vbphrase part doesn't seem to work....
--------------- Added [DATE]1234238099[/DATE] at [TIME]1234238099[/TIME] ---------------
OK, used parse_templates hook instead and it's all good. Cheers!