The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Ahh I'm sorry, it's my fault. It does work, but only if I use $notifications_not_pm in the navbar template. I need to use it in the header template.
|
#12
|
|||
|
|||
Oh, then you're right, that hook location won't work. Unfortunately there's no hook between $notifications_total being set and the header template being rendered. So you could edit global.php and insert the code.
Or you could cheat. The template processing doesn't let you put arbitrary php code in there, but you can sneak some stuff into a condition. So before you use the value in the header template you could put this: Code:
<if condition="$notifications_not_pm = $notifications_total - $vbulletin->userinfo[pmunread]"> </if> The if doesn't do anything, but the condition has a side-effect of setting that variable. In either case you can disable the plugin. |
#13
|
|||
|
|||
Thank you very much for the help kh99!! The 'cheat' works like a charm.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|