By Paul
03/21/04 (Edited 05/20/09)
WSN can display a listing of online users, if you've enabled it in your switches. Online users lists in WSN act as toplists, and so can be used in the same way as any toplist.
You can configure the online user lists under settings->functionality. The next value it requests, the number of minutes to count the user as online, will determine how lenient the definition of "current" is in showing currently online users. Anyone who loaded a page less than this number of minutes ago will be listed as online. Finally, set the date format you will want to have shown in the user listing as the last seen date of the users.
Suppose you want to put a new online users list somewhere, or modify the ones in the default templates. Click 'toplist generator' in your admin panel to start his process. Choose 'online users' there, and specify the rest of the toplist as you wish. Alternatively, here's an example you may wish to use:
<table>
<!-- BEGIN TOPLIST -->
<CONFIG>sessions,time,50,descending</CONFIG>
<tr>
<td><a href="{ONLINEPROFILEURL}">{ONLINENAME}</a></td>
<td>Online from {ONLINESTARTDATE} to %x - %X</td>
<td>{ONLINEBROWSER} {ONLINEIP}</td>
<td>{ONLINELOCATION}</td>
</tr>
<!-- END TOPLIST -->
</table>
Global online user variables (not specific to any single online toplist):
{TOTALONLINE} - Total users online.
{TOTALGUESTSONLINE} - Total unregistered users online.
{TOTALMEMBERSONLINE} - Total registered users online.
{TOTALSPIDERSONLINE} - Total search engine spiders online.
{MAXGUESTSONLINE} - Most ever unregistered users online.
{MAXGUESTSONLINEDATE} - The date/time of the most ever unregistered users online.
{MAXMEMBERSONLINE} - Most ever registered users online.
{MAXMEMBERSONLINEDATE} - The date/time of the most ever registered users online.
{MAXTOTALONLINE} - The most overall users online.
{MAXTOTALONLINEDATE} - The date/time of the most overall users online.
Toplist-specific variables:
All member variables with {ONLINE in place of {MEMBER, plus
{ONLINEMEMBERID} - The id of the member, or false if a guest.
{ONLINENAME} - THe username of the member.
{ONLINEGROUPNAMESTYLE} - The style class for the usergroup.
{ONLINEIP} - The IP address of the visitor.
{ONLINELOCATION} - The url the user last viewed.
{ONLINEAREANAME} - The name of the location viewed, if available.
{ONLINEDATE} - The time of the user's last action.
{ONLINESTARTDATE} - The time the user came online.
{ONLINEBROWSER} - The user agent of the person.
{ONLINECATURL} - The url of the category being viewed by the online user.
{ONLINECATNAME} - The name of the category being viewed/
{ONLINECATID} - The id of the category being viewed by the online user. False if they're not in a category.
{ONLINETHREADID} - The id of the comments thread being viewed by the online user. 0 if they're not viewing a comments thread.
{ONLINEISROBOT} - True if it's a search engine spider, otherwise false.
{ONLINEREADYTOCHATICON} - When using the instant messaging system, this places a chat icon where appropriate.
{ONLINEINVISMARKER} - A marker to show that the member is invisible, when viewed by those who can view the invisible.
You can also use all category and listing variables whenever {ONLINECATID} and {ONLINETHREADID} are greater than 0, to show info about the category/thread being viewed.





