The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
the hack way around it would be to download "Let PHP Live" and change that to PHP and input it in the header template.
PHP Live is for v3.5 I think, but it works flawlessly. |
|
#3
|
|||
|
|||
|
thank you SO MUCH for that product!!!!!!!!!!!!!!!!!!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|