The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm using the vB Page template found here at vBulletin.org to create a 'home page'. But I would like to show the forum stats that are found on the FORUMHOME template on this page. I copied and pasted the code, but as you probably know that doesn't suffice.
Is there a special bit of code required to get these stats to work? |
#2
|
|||
|
|||
![]()
no one?
I found codes like Code:
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); $numbermembers=number_format($numbersmembers['users']); // get total posts $countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post'); $totalposts=number_format($countposts['posts']); $countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread'); $totalthreads=number_format($countthreads['threads']); // get newest member $getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]"); $newusername=$getnewestusers['username']; $newuserid=$getnewestusers['userid']; ![]() |
#3
|
|||
|
|||
![]()
Ok, I'm getting there but it currently displays this;
Quote:
|
#4
|
|||
|
|||
![]() ![]() ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|