Unofficial SMF API Documentation

./Sources/Who.php

Who

function Who(): void

Who’s online, and what are they doing? This function prepares the who’s online data for the Who template.

It requires the who_view permission. It is enabled with the who_enabled setting. It is accessed via ?action=who.

Uses Who template, main sub-template Uses Who language file.

determineActions

function determineActions(mixed $urls, string|bool $preferred_prefix = false): array

This function determines the actions of the members passed in urls.

Adding actions to the Who’s Online list: Adding actions to this list is actually relatively easy…

Type Parameter Description
mixed $urls a single url (string) or an array of arrays, each inner array being (JSON-encoded request data, id_member)
string|bool $preferred_prefix = false
Integration hooks
who_allowed
integrate_whos_online
whos_online_after

Credits

function Credits(bool $in_admin = false): void

It prepares credit and copyright information for the credits page or the admin page

Type Parameter Description
bool $in_admin = false, if parameter is true the it will not load the sub-template nor the template file
Integration hooks
integrate_credits

Suggest an edit to this page on GitHub