vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to display stats from "What's Going On?" in navbar? (https://vborg.vbsupport.ru/showthread.php?t=305196)

TeamSempoi 11-30-2013 12:31 PM

How to display stats from "What's Going On?" in navbar?
 
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...g-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

Quote:

Originally Posted by TeamSempoi (Post 2464780)
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...g-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

Quote:

Originally Posted by napy8gen (Post 2465135)
This will work. I tried it back few years or months but working.
see post no 8.

http://www.vbulletin.com/forum/forum...g-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

Quote:

Originally Posted by TeamSempoi (Post 2465348)
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

Quote:

Originally Posted by tbworld (Post 2465351)
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

Quote:

Originally Posted by TeamSempoi (Post 2465682)
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

Quote:

Originally Posted by tbworld (Post 2465884)
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

Quote:

Originally Posted by tbworld (Post 2465884)
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

Quote:

Originally Posted by TeamSempoi (Post 2468407)
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

Quote:

Originally Posted by TommyHara (Post 2470565)
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

Quote:

Originally Posted by tbworld (Post 2468413)
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?

kh99 05-12-2014 07:04 PM

You could try this: use the code at the link above, but add this at the end (after the added code):
PHP 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

Quote:

Originally Posted by kh99 (Post 2497491)
You could try this: use the code at the link above, but add this at the end (after the added code):
PHP 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?


All times are GMT. The time now is 05:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01344 seconds
  • Memory Usage 1,789KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete