PDA

View Full Version : Counting users online


vbdarwin
11-05-2010, 10:22 AM
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
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
This mod does all that https://vborg.vbsupport.ru/showthread.php?t=196458

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
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 :)