The Arcive of vBulletin Modifications Site. |
|
|
#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'];
I was sure there was a hack here at vBulletin.org but I couldn't find it ...
|
|
#3
|
|||
|
|||
|
Ok, I'm getting there but it currently displays this;
Quote:
|
|
#4
|
|||
|
|||
Done this myself, after realising I had to change the phrase 1="" etc.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|