The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User(+Forum?)Stats on a NON-VB Page!
UserStats on a NON-VB Page!
and if possible ForumStats like: Currently Active Users: 145 (47 members and 98 guests) Threads: 37,933 Posts: 359,546 Members: 51,820 Newest member: YBnormal can anyone make this mini-mod plz! thnx, JaCky |
#2
|
|||
|
|||
bump
|
#3
|
||||
|
||||
[sql]
select * from datastore where title='userstats' [/sql] Unserialize this and you will have an array with entries numbermembers, newusername and newuserid. [sql] select * from datastore where title='forumcache' [/sql] Unserialize this which will give you an multi-dimensional associative array with all forum information. Loop through this array and accumulate threadcount and replycount. 'Who is online' is a bit more complicated. Take a look at index.php after PHP Code:
|
#4
|
|||
|
|||
so? how will it be when i make just one single forumstats.php page?
do i need to use includes n stuff? |
#5
|
|||
|
|||
I too am trying to put who is online on a non vb page, Have tryed many things, with little progress, how bout a hand...
|
#6
|
|||
|
|||
try this... it works for vb 3.5.x
PHP Code:
HTML Code:
Visitors Online: <strong><?=$total_online;?></strong><br> Members: <strong><?=$numberusers;?></strong> <br> Guests: <strong><?=$numberguest;?></strong><br> Registered users:<strong><?=$userstats['numbermembers'];?></strong><br><br> Most users online: <b><?=$maxonline['maxonline'];?></b><br> on <?=date("M jS, Y G:i:s", $maxonline['maxonlinedate']);?>.<br> Newest member, <b><?=$userstats['newusername'];?></b> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|