View Full Version : How to display stats from "What's Going On?" in navbar?
TeamSempoi
11-30-2013, 12:31 PM
I'd like to display stats in the header from the "What's Going On?" section at the bottom of the forum, such as:
numberguest
numbermembers
numberregistered
totalonline
activemembers
totalposts
totalthreads
try to use this option but still can't use it.. http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/355712-how-to-display-stats-from-what-s-going-on-in-header
i want do something like this see img attach
i hope someone can help me to find this solution
thanks
tbworld
11-30-2013, 06:20 PM
try to use this option but still can use it.. http://www.vbulletin.com/forum/forum...64#post3074564
Your referenced link is invalid. :)
TeamSempoi
12-01-2013, 01:49 PM
update the link!!
napy8gen
12-02-2013, 08:14 AM
This will work. I tried it back few years or months but working.
see post no 8.
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/355712-how-to-display-stats-from-what-s-going-on-in-header
tbworld
12-02-2013, 08:31 AM
I am currently working on a mod/hack for using WGO stats, blog stats, article stats anywhere on the board. With no additional queries per user/page.
Instead a cron job is performed and the stats are written to the datastore and then read during general initialization of the datastore. You will be able to use these stats in announcements, notices, header, footer, postbit and all other templates. It is being designed for large boards in mind.
I should be releasing an alpha version in a couple days.
TeamSempoi
12-03-2013, 03:13 AM
This will work. I tried it back few years or months but working.
see post no 8.
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/355712-how-to-display-stats-from-what-s-going-on-in-header
no its not working,
i put this following vars on navbar template not header template
{vb:raw totalonline}
{vb:raw numberregistered}
{vb:raw numberguest}
{vb:raw numbermembers}
{vb:raw activemembers}
{vb:raw activeusers}
{vb:raw totalposts}
{vb:raw totalthreads}
tbworld
12-03-2013, 03:28 AM
no its not working,
i put this following vars on navbar template not header template
That code should basically work. If your having trouble wait for my alpha release. It will solve your problem.
TeamSempoi
12-04-2013, 05:09 AM
That code should basically work if you have used it right. If your having trouble wait for my alpha release. It will solve your problem.
i hope you can release ASAP
tbworld
12-04-2013, 05:25 AM
What version of vBulletin and PHP are you running? I might be able to give you an alpha release just for the navbar. I have not tested it on v4.2.2 or php 5.4. It is only a data-engine, actual template modifications will be up to you.
TeamSempoi
12-04-2013, 03:50 PM
Server Type : Linux
Web Server : Apache v2.2.24 (cgi-fcgi)
PHP : 5.3.26
VBulletin : v4.2.2
tbworld
12-05-2013, 05:52 AM
Server Type : Linux
Web Server : Apache v2.2.24 (cgi-fcgi)
PHP : 5.3.26
VBulletin : v4.2.2
I will try to send you some alpha code as soon as I can. It should get you going for now.
TeamSempoi
12-05-2013, 02:56 PM
I will try to send you some alpha code as soon as I can. It should get you going for now.
copy that waiting your respon
TeamSempoi
12-09-2013, 06:58 AM
I will try to send you some alpha code as soon as I can. It should get you going for now.
still waiting your code..
TeamSempoi
12-15-2013, 12:08 PM
still waiting your code..
tbworld
12-15-2013, 01:03 PM
still waiting your code..
Didn't forget about you, but unfortunately have been busy working on another project. I will send it to you as soon as I can. :)
TeamSempoi
12-17-2013, 08:58 AM
ok tq.. i am waiting good news from you
TommyHara
12-26-2013, 01:39 AM
You can need vb advanced statistics 2.6 to do that.
TeamSempoi
12-28-2013, 08:32 AM
You can need vb advanced statistics 2.6 to do that.
and what was that..
can you include link?
TeamSempoi
01-04-2014, 10:13 PM
Didn't forget about you, but unfortunately have been busy working on another project. I will send it to you as soon as I can. :)
hye guy,
just asking how about my request?
TeamSempoi
05-12-2014, 12:58 PM
just asking how about my request?
You could try this: use the code at the link above, but add this at the end (after the added code):
//CUSTOM FOR DISPLAY OF STATS IN NAVBAR
vB_Template::preRegister('navbar', array('numberguest' => $numberguest,
'numbermembers' => $numbermembers,
'numberregistered' => $numberregistered,
'totalonline' => $totalonline,
'activemembers' => $activemembers,
'activeusers' => $activeusers,
'totalposts' => $totalposts,
'totalthreads' => $totalthreads));
//EO CUSTOM FOR DISPLAY OF STATS IN NAVBAR
This can be done with plugins so that you don't need to modify code, but I don't have time to work that out, so this was the easiest way to tell you something that might work (hopefully there aren't any errors because I haven't tried the code).
TeamSempoi
05-13-2014, 07:56 PM
You could try this: use the code at the link above, but add this at the end (after the added code):
//CUSTOM FOR DISPLAY OF STATS IN NAVBAR
vB_Template::preRegister('navbar', array('numberguest' => $numberguest,
'numbermembers' => $numbermembers,
'numberregistered' => $numberregistered,
'totalonline' => $totalonline,
'activemembers' => $activemembers,
'activeusers' => $activeusers,
'totalposts' => $totalposts,
'totalthreads' => $totalthreads));
//EO CUSTOM FOR DISPLAY OF STATS IN NAVBAR
This can be done with plugins so that you don't need to modify code, but I don't have time to work that out, so this was the easiest way to tell you something that might work (hopefully there aren't any errors because I haven't tried the code).
its working tq
K4GAP
05-13-2014, 08:29 PM
Is it possible to see an example of this?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.