vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   simple statistics output (https://vborg.vbsupport.ru/showthread.php?t=223099)

CeesT 09-13-2009 05:37 PM

simple statistics output
 
Hi,

I am not a vbulletin software expert and need some help for the following.
I like to output some statistics to feed cacti. I like to do this by calling a php webpage. The output of such a webpage should be unformatted text only, so no vbulletin layout. I like to output things like: current online members and guests, current threads, posts and total members.

So basically such a page should only have one line of text like:
Quote:

75 381 9909 122915 25668
(75 members online, 381 visitors online, 9909 threads, 122915 posts, 25668 members total)

I do not want to open the database myself, as I think all the data could be delivered by the vbulletin routines and probably are available as variables.

Who has an example of a small php-script that I can place on my vbulletin site ?

CeesT 09-19-2009 02:25 PM

Quote:

Originally Posted by CeesT (Post 1884164)
Who has an example of a small php-script that I can place on my vbulletin site ?

Nobody ?:erm:

Lynne 09-19-2009 03:18 PM

These statistics are generated for the index.php page at the bottom of the page. You can probably grab the code from that page to create your script.


All times are GMT. The time now is 11:21 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.03124 seconds
  • Memory Usage 1,712KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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