Home
The Toolkit for Online Communities
15889 Community Members, 2 members online, 1836 visitors today
Log In Register

whos-online-procs.tcl

OpenACS Home : ACS API Browser : ACS Tcl 5.5.1 : whos-online-procs.tcl
Publicity:
[Public Only | All]

whos-online-procs.tcl

Provides support for registering which users are online.
Location:
packages/acs-tcl/tcl/whos-online-procs.tcl
Created:
03 October 2003
Authors:
Bjoern Kiesbye
Peter Marklund
Lars Pind
CVS Identification:
$Id: whos-online-procs.tcl,v 1.4 2007/01/10 21:22:12 gustafn Exp $

Procedures in this file

Detailed information

whos_online::all_invisible_user_ids (public)

whos_online::all_invisible_user_ids
This function returns a list with all user_ids wich are set to invisible

Author:
Bjoern Kiesbye
 

whos_online::num_anonymous (public)

whos_online::num_anonymous
Get the number of anony users currently online, and not invisible

 

whos_online::num_users (public)

whos_online::num_users
Get the number of registered users currently online, and not invisible

 

whos_online::seconds_since_first_request (public)

whos_online::seconds_since_first_request user_id
Returns the number of seconds since the user with given id first requested a page. Returns the empty string if the user is not currently online.

Parameters:
user_id
Author:
Peter Marklund
 

whos_online::seconds_since_last_request (public)

whos_online::seconds_since_last_request user_id
Returns the number of seconds since the user with given id requested a page. Returns the empty string if the user is not currently online.

Parameters:
user_id
Author:
Peter Marklund
 

whos_online::set_invisible (public)

whos_online::set_invisible user_id
This procedure sets the user user_id to invisible, his user_id will not be returned by user_ids. The invisible state will only last as long as the user is online.

Parameters:
user_id
Author:
Bjoern Kiesbye
 

whos_online::unset_invisible (public)

whos_online::unset_invisible user_id
This procedure unsets the invisible state of user_id.

Parameters:
user_id
Author:
Bjoern Kiesbye
 

whos_online::user_ids (public)

whos_online::user_ids [ -all ]
This function returns a list of user_ids from users wich have requested a page from this Server in the last 10 min.And aren't set to invisible.

Switches:
-all (boolean) (optional)
Set this flag if you want to include invisible users.
Author:
Bjoern Kiesbye
 

whos_online::user_invisible_p (public)

whos_online::user_invisible_p user_id
This function checks if the user user_id is set to invisible. Returns a Tcl boolean.

Parameters:
user_id
Author:
Bjoern Kiesbye