• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

WeitualUser -- Virtual Members crawling the site

Updated to version 1.2.0
In this version,
The online time are randomized, solved all users viewing xxxx 1 min. ago problem.
Add guests.

Pls. refer to post #2 for limitations and possible solution to it.

Tks.
 
Below is online statistics for an hour, one min/sample.
Default 30 guests per job, max. 17 mins time back, session time out 15 min.

At start up, only 24, not 30 guests. Some guests already time out.
After 2 mins, one member go offline.

You can find online level fluctuate in 5 mins interval. It fluctuate between 20+ to 60-.

A perl script attached in this post to log online statistics. Currently only support default English phrase.

2011-07-02 17:57:31 -- Online now: 26 (members: 2, guests: 24)
2011-07-02 17:58:31 -- Online now: 26 (members: 2, guests: 24)
2011-07-02 17:59:32 -- Online now: 26 (members: 2, guests: 24)
2011-07-02 18:00:32 -- Online now: 25 (members: 1, guests: 24)
2011-07-02 18:01:33 -- Online now: 22 (members: 1, guests: 21)
2011-07-02 18:02:34 -- Online now: 47 (members: 2, guests: 45)
2011-07-02 18:03:35 -- Online now: 42 (members: 2, guests: 40)
2011-07-02 18:04:35 -- Online now: 39 (members: 2, guests: 37)
2011-07-02 18:05:36 -- Online now: 38 (members: 2, guests: 36)
2011-07-02 18:06:36 -- Online now: 33 (members: 2, guests: 31)
2011-07-02 18:07:37 -- Online now: 54 (members: 2, guests: 52)
2011-07-02 18:08:38 -- Online now: 49 (members: 2, guests: 47)
2011-07-02 18:09:38 -- Online now: 43 (members: 2, guests: 41)
2011-07-02 18:10:39 -- Online now: 37 (members: 2, guests: 35)
2011-07-02 18:11:40 -- Online now: 35 (members: 2, guests: 33)
2011-07-02 18:12:40 -- Online now: 58 (members: 2, guests: 56)
2011-07-02 18:13:41 -- Online now: 49 (members: 1, guests: 48)
2011-07-02 18:14:41 -- Online now: 44 (members: 1, guests: 43)
2011-07-02 18:15:42 -- Online now: 39 (members: 1, guests: 38)
2011-07-02 18:16:43 -- Online now: 30 (members: 1, guests: 29)
2011-07-02 18:17:43 -- Online now: 48 (members: 2, guests: 46)
2011-07-02 18:18:44 -- Online now: 43 (members: 2, guests: 41)
2011-07-02 18:19:44 -- Online now: 38 (members: 2, guests: 36)
2011-07-02 18:20:45 -- Online now: 33 (members: 2, guests: 31)
2011-07-02 18:21:45 -- Online now: 28 (members: 2, guests: 26)
2011-07-02 18:22:46 -- Online now: 45 (members: 1, guests: 44)
2011-07-02 18:23:47 -- Online now: 41 (members: 1, guests: 40)
2011-07-02 18:24:47 -- Online now: 35 (members: 1, guests: 34)
2011-07-02 18:25:48 -- Online now: 33 (members: 1, guests: 32)
2011-07-02 18:26:48 -- Online now: 31 (members: 1, guests: 30)
2011-07-02 18:27:49 -- Online now: 48 (members: 2, guests: 46)
2011-07-02 18:28:50 -- Online now: 44 (members: 2, guests: 42)
2011-07-02 18:29:50 -- Online now: 39 (members: 2, guests: 37)
2011-07-02 18:30:51 -- Online now: 37 (members: 2, guests: 35)
2011-07-02 18:31:52 -- Online now: 31 (members: 2, guests: 29)
2011-07-02 18:32:52 -- Online now: 50 (members: 2, guests: 48)
2011-07-02 18:33:53 -- Online now: 44 (members: 2, guests: 42)
2011-07-02 18:34:53 -- Online now: 41 (members: 2, guests: 39)
2011-07-02 18:35:54 -- Online now: 36 (members: 2, guests: 34)
2011-07-02 18:36:54 -- Online now: 56 (members: 2, guests: 54)
2011-07-02 18:37:55 -- Online now: 52 (members: 2, guests: 50)
2011-07-02 18:38:56 -- Online now: 48 (members: 2, guests: 46)
2011-07-02 18:39:56 -- Online now: 41 (members: 2, guests: 39)
2011-07-02 18:40:57 -- Online now: 35 (members: 1, guests: 34)
2011-07-02 18:41:58 -- Online now: 55 (members: 2, guests: 53)
2011-07-02 18:43:08 -- Online now: 49 (members: 2, guests: 47)
2011-07-02 18:44:09 -- Online now: 44 (members: 2, guests: 42)
2011-07-02 18:45:10 -- Online now: 35 (members: 1, guests: 34)
2011-07-02 18:46:11 -- Online now: 28 (members: 1, guests: 27)
2011-07-02 18:47:11 -- Online now: 52 (members: 2, guests: 50)
2011-07-02 18:48:12 -- Online now: 45 (members: 2, guests: 43)
2011-07-02 18:49:13 -- Online now: 37 (members: 1, guests: 36)
2011-07-02 18:50:13 -- Online now: 32 (members: 1, guests: 31)
2011-07-02 18:51:14 -- Online now: 31 (members: 1, guests: 30)
2011-07-02 18:52:15 -- Online now: 50 (members: 1, guests: 49)
2011-07-02 18:53:16 -- Online now: 46 (members: 1, guests: 45)
2011-07-02 18:54:16 -- Online now: 38 (members: 1, guests: 37)
2011-07-02 18:55:17 -- Online now: 35 (members: 1, guests: 34)
2011-07-02 18:56:17 -- Online now: 31 (members: 1, guests: 30)
2011-07-02 18:57:18 -- Online now: 51 (members: 1, guests: 50)
2011-07-02 18:58:19 -- Online now: 48 (members: 1, guests: 47)
2011-07-02 18:59:19 -- Online now: 44 (members: 1, guests: 43)
2011-07-02 19:00:20 -- Online now: 39 (members: 1, guests: 38)
2011-07-02 19:01:20 -- Online now: 34 (members: 1, guests: 33)
2011-07-02 19:02:21 -- Online now: 53 (members: 2, guests: 51)
2011-07-02 19:03:21 -- Online now: 50 (members: 2, guests: 48)
2011-07-02 19:04:22 -- Online now: 47 (members: 2, guests: 45)
2011-07-02 19:05:23 -- Online now: 40 (members: 2, guests: 38)
2011-07-02 19:06:23 -- Online now: 32 (members: 2, guests: 30)
2011-07-02 19:07:24 -- Online now: 48 (members: 1, guests: 47)
2011-07-02 19:08:24 -- Online now: 43 (members: 1, guests: 42)
2011-07-02 19:09:25 -- Online now: 39 (members: 1, guests: 38)
2011-07-02 19:10:26 -- Online now: 33 (members: 1, guests: 32)
2011-07-02 19:11:26 -- Online now: 27 (members: 1, guests: 26)
2011-07-02 19:12:27 -- Online now: 49 (members: 1, guests: 48)
2011-07-02 19:13:28 -- Online now: 46 (members: 1, guests: 45)
2011-07-02 19:14:28 -- Online now: 38 (members: 1, guests: 37)
2011-07-02 19:15:29 -- Online now: 35 (members: 1, guests: 34)
2011-07-02 19:16:29 -- Online now: 29 (members: 1, guests: 28)
2011-07-02 19:17:30 -- Online now: 48 (members: 2, guests: 46)
2011-07-02 19:18:30 -- Online now: 44 (members: 2, guests: 42)
2011-07-02 19:19:31 -- Online now: 38 (members: 2, guests: 36)
2011-07-02 19:20:31 -- Online now: 35 (members: 2, guests: 33)
2011-07-02 19:21:32 -- Online now: 28 (members: 2, guests: 26)
2011-07-02 19:22:33 -- Online now: 47 (members: 2, guests: 45)
2011-07-02 19:23:33 -- Online now: 37 (members: 2, guests: 35)
2011-07-02 19:24:34 -- Online now: 31 (members: 2, guests: 29)
2011-07-02 19:25:34 -- Online now: 31 (members: 2, guests: 29)
2011-07-02 19:26:35 -- Online now: 28 (members: 2, guests: 26)
2011-07-02 19:27:36 -- Online now: 51 (members: 2, guests: 49)
2011-07-02 19:28:36 -- Online now: 48 (members: 2, guests: 46)
2011-07-02 19:29:37 -- Online now: 41 (members: 2, guests: 39)
2011-07-02 19:30:37 -- Online now: 38 (members: 2, guests: 36)
2011-07-02 19:31:38 -- Online now: 34 (members: 2, guests: 32)
2011-07-02 19:32:43 -- Online now: 48 (members: 1, guests: 47)
2011-07-02 19:33:44 -- Online now: 44 (members: 1, guests: 43)
2011-07-02 19:34:45 -- Online now: 41 (members: 1, guests: 40)
 

Attachments

wow, upgraded and now I have too many on my boards..:( Online now: 1,662 (members: 1,656, guests: 6)
Your website design is very cool.
[QUOTEOnline now: 1,286 (members: 1,279, guests: 7)][/QUOTE]
Do you like this No.? If there are thousands users, hundreds guests is reasonable.
 
Weiyan,
Just trying to confirm this module is working..

I have it set up with a user group with 10 users. I have it set for 30 guests per job, and 20 minute time span.

What I see is an occasional "guest" viewing a thread and their is an IP of 0.0.0.0 for that user. Is this your program doing it's thing?

Also I see 10 cron jobs that are labeled "Update Virtual Users Activities" (with various numbers), and then 2 cron jobs titled "Update Virtusl User Session Activities - 1" and "update Virtual Users Session Activities 16". Is that right?

-Wayne
 
Weiyan,
Just trying to confirm this module is working..

I have it set up with a user group with 10 users. I have it set for 30 guests per job, and 20 minute time span.

What I see is an occasional "guest" viewing a thread and their is an IP of 0.0.0.0 for that user. Is this your program doing it's thing?

Also I see 10 cron jobs that are labeled "Update Virtual Users Activities" (with various numbers), and then 2 cron jobs titled "Update Virtusl User Session Activities - 1" and "update Virtual Users Session Activities 16". Is that right?

-Wayne
Ip is between 192, that should be 1~192.1~192.1~192.1~192, IP of 0.0.0.0 is not generated by this mod.

The ten cron job you seen is istalled with this add-on. The suffix no. indicated which minute in an hour this job is fired.

The time span in option is not the for the cron job intervals. Let me try explain it more clearly.

When fired a virtual user, if set to 20 minutes, the recorded time of the user should be between 20 minutes ago and now.

The interval is set by cron jobs.

If you set the 20 minutes option, less users will online since xenforo's default time out is 15 mins. That's about 1/4 virtual users time outed at the moment firing the cron job.

Pls. also see post #2 for the limitations and temporary fix.

Sorry my unclean writing. Should you have further question pls. feel free to ask.

Thank you.
 
Why do we need the virtual users group if it only shows as guest?

Also, went ahead and set up the cron for every 5 minutes.

Thanks!
 
As a suggestion it would be nice to add more then one User Group.
For Example, i have a Usergroup called RSS Feeds i also would like to see online plus the virtual user Group
 
Why do we need the virtual users group if it only shows as guest?

Also, went ahead and set up the cron for every 5 minutes.

Thanks!
If selected a group of virtual users, the users name will show up in users online now panel.

Do you mean cron job inside xenforo, or linux cron job?
 
As a suggestion it would be nice to add more then one User Group.
For Example, i have a Usergroup called RSS Feeds i also would like to see online plus the virtual user Group
My first idea is only a group of non real users. If more than one virtual user groups is beneficial, I will add this feature. Adding secondary user group is more reasonable, will add this feature until I know how to user secondary user group.
 
As a suggestion it would be nice to add more then one User Group.
For Example, i have a Usergroup called RSS Feeds i also would like to see online plus the virtual user Group
My first idea is only a group of non real users. If more than one virtual user groups is beneficial, I will add this feature. Adding secondary user group is more reasonable, will add this feature until I know how to user secondary user group.
 
Btw, why there are so many entries in the con job list? Is it possible to reduce the entries?
12 Entries just with - Update Virtual User Session Activities X

and will there be any problems if in the Cron jobs is Virtusl intead of Virtual?
Update Virtusl User Session Activities - 1
 
Btw, why there are so many entries in the con job list? Is it possible to reduce the entries?
12 Entries just with - Update Virtual User Session Activities X

and will there be any problems if in the Cron jobs is Virtusl intead of Virtual?
Update Virtusl User Session Activities - 1
You can delete some cron job and re-spacing the time.

The name of job can be Virtusl or Virsutal or whatever you like.

Fewer cron job the no. of onliners fluctuate more.

Pls. refer to post #2 for limitation of this mod. Its better to write a non-stop program to crawl the site, but my program skill is not sufficient to do that. Also php has not threading.
 
Thanks Weiyan, but mine (skill) is at zero. All i know is CSS and very less TCL. I am more a graphic Guy
 
Thumbsup for this add-on, thanks for sharing.
Thanks Weiyan, but mine (skill) is at zero. All i know is CSS and very less TCL. I am more a graphic Guy
Thanks.
I am finished moving my computers from windows to linux, have time to further dig into this mod. I am thinking about make its a standalone app, no more cron job. Also make it aware of secondary group.
 
Thank you for this interesting add-on, Weiyan! :) Floris-the-Great, created something similar to this on vB...certainly helps new forums off the ground in a small way!
 
Hmm, I never got the cron working, it has been throwing errors all this time. Does this mean anything to you?
.../cron.php: line 1: ?php: No such file or directory
.../cron.php: line 3: syntax error near unexpected token `('
.../cron.php: line 3: `$startTime = microtime(true);'
This is my cron file:

PHP:
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

XenForo_Cron::runAndOutput();
 
Hmm, I never got the cron working, it has been throwing errors all this time. Does this mean anything to you?
.../cron.php: line 1: ?php: No such file or directory
.../cron.php: line 3: syntax error near unexpected token `('
.../cron.php: line 3: `$startTime = microtime(true);'
This is my cron file:

PHP:
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

XenForo_Cron::runAndOutput();

Sorry for reply late.

Sorry I can't fully understand.

Do you put this cron file on xenforo root, then register to linux cron?
 
Top Bottom