Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2013, 12:31 PM
TeamSempoi TeamSempoi is offline
 
Join Date: Jan 2012
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
Благодарность от:
Filgga
  #2  
Old 11-30-2013, 06:20 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TeamSempoi View Post
try to use this option but still can use it.. http://www.vbulletin.com/forum/forum...64#post3074564
Your referenced link is invalid.
Reply With Quote
  #3  
Old 12-01-2013, 01:49 PM
TeamSempoi TeamSempoi is offline
 
Join Date: Jan 2012
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

update the link!!
Reply With Quote
  #4  
Old 12-02-2013, 08:14 AM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 12-02-2013, 08:31 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-03-2013, 03:13 AM
TeamSempoi TeamSempoi is offline
 
Join Date: Jan 2012
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by napy8gen View Post
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}
Reply With Quote
  #7  
Old 12-03-2013, 03:28 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TeamSempoi View Post
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.
Reply With Quote
  #8  
Old 12-04-2013, 05:09 AM
TeamSempoi TeamSempoi is offline
 
Join Date: Jan 2012
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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
Reply With Quote
  #9  
Old 12-04-2013, 05:25 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 12-04-2013, 03:50 PM
TeamSempoi TeamSempoi is offline
 
Join Date: Jan 2012
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Server Type : Linux
Web Server : Apache v2.2.24 (cgi-fcgi)
PHP : 5.3.26
VBulletin : v4.2.2
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10359 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete