The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Quote:
--------------- Added [DATE]1194462682[/DATE] at [TIME]1194462682[/TIME] --------------- I pasted this in header $vbphrase[members]: $numbermembers the output i get is Members: no number. Should be Members: 1300 |
#12
|
|||
|
|||
The code that sets the $numbermembers variable to the right digit is at the end of the index.php file and as the header template is being parsed in the global.php file (witch is included in the beginning of the index.php file) there is no way that simply including that variable in the template will do any good.
To make it work you need to run some code that sets that variable before it is being used. I think the parse_templates hook would work. You add the code to it by using the plugin manager in the admincp. I think this code will do the trick, however i havnt tested it. Code:
// get total members and newest member from template $numbermembers = vb_number_format($vbulletin->userstats['numbermembers']); $newusername = $vbulletin->userstats['newusername']; $newuserid = $vbulletin->userstats['newuserid']; $activemembers = vb_number_format($vbulletin->userstats['activemembers']); $show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|