The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How To Show Online User In Header ?
Hi, how to show online user in header template ?
I know the code for this : {vb:raw totalonline} But no luck... or we need to add other code too ? |
#2
|
|||
|
|||
I think the problem is that $totalonline isn't registered to the header template, and also it might not have been calculated at the time that the header template is rendered. You'd probably need to make a plugin (using hook parse_template) with code that calculates $totalonline and preRegisters the value to the header template.
If you could live with the value only being dispalyed on pages that calculate it, then you might be able to do some sort of str_replace() on the $header variable before it's used in the page template (but that's a little trickier). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|