The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
how to use variables in global.php in header template?
i have a little hack i added to the global.php file:
Code:
// forum stats start $numbersmembers=$db->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); $numbermembers=number_format($numbersmembers['users']); $countposts=$db->query_first('SELECT COUNT(*) AS posts FROM post'); $totalposts=number_format($countposts['posts']); $countthreads=$db->query_first('SELECT COUNT(*) AS threads FROM thread'); $totalthreads=number_format($countthreads['threads']); // forum stats end how do i use these variables in the header template? --------------- Added [DATE]1226888073[/DATE] at [TIME]1226888073[/TIME] --------------- i tried adding this as a plugin to global_start and it still didnt work. UGH |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|