vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Counting users online (https://vborg.vbsupport.ru/showthread.php?t=253191)

vbdarwin 11-05-2010 10:22 AM

Counting users online
 
Hi all
I'm searching an easy way to count (every n minutes) users online (both members and guests), display the value and write the value to a db table.
I need this for statistics, monitoring and optimization purposes.

Any ideas?

Thank you

kh99 11-05-2010 12:42 PM

You could use the code from online.php and make a scheduled task that counts users and appends a record to a db table. If you want to display the value you could also stick the current values in the datastore.

vbdarwin 11-05-2010 12:59 PM

Quote:

Originally Posted by kh99 (Post 2118244)
You could use the code from online.php and make a scheduled task that counts users and appends a record to a db table. If you want to display the value you could also stick the current values in the datastore.

kh99, thank you for replying...

The solution you suggested is easy to describe, but unfortunately, I'm not able to write any php code... :D
This is why I asked if someone has a ready solution ;)

Simon Lloyd 11-05-2010 01:18 PM

This mod does all that https://vborg.vbsupport.ru/showthread.php?t=196458

vbdarwin 11-05-2010 01:31 PM

Quote:

Originally Posted by Simon Lloyd (Post 2118254)

Very interesting! Thank you ;)

Lynne 11-05-2010 01:32 PM

Actually, that mod probably doesn't do what he wants. It counts users in the last 24 hours, not every few minutes, and it stores the number in datastore, which means it's written over everytime a new number is calculated.

This forum is more for discussion how *you* can program this. If you need someone else to write the code, you need to post in either the Unpaid Requests forum or the Paid Requests forum.

vbdarwin 11-05-2010 01:47 PM

Quote:

Originally Posted by Lynne (Post 2118262)
Actually, that mod probably doesn't do what he wants. It counts users in the last 24 hours, not every few minutes, and it stores the number in datastore, which means it's written over everytime a new number is calculated.

This forum is more for discussion how *you* can program this. If you need someone else to write the code, you need to post in either the Unpaid Requests forum or the Paid Requests forum.

Thank you Lynne, you are right: I'll try the other forums :)


All times are GMT. The time now is 03:51 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.01152 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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