How Joomla Module Who's Online Works

he Who's Online Module displays the number of Anonymous Users (e.g. Guests) and Registered Users (ones logged-in) that are currently accessing the website.

It has two options:

  1. Display (list)
  2. Filter Groups (radio)

Helper File

The helper file has two functions:

  1. public static function getOnlineCount()
  2. public static function getOnlineUserNames($params)

public static function getOnlineCount()

It returns an array with the number of Users and Guests online. This information is stored in Joomla session table.

public static function getOnlineUserNames($params)

It returns an array with the names of the online users. This information is stored in Joomla session table.

Layout File

Based on the display mode, the default layout file contains the output.