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:
- Display (list)
- Filter Groups (radio)
Helper File
The helper file has two functions:
- public static function getOnlineCount()
- 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.