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


All times are GMT. The time now is 06:48 AM.

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.01349 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete