./Sources/Stats.php
DisplayStats
function DisplayStats(): void
Display some useful/interesting board statistics.
gets all the statistics in order and puts them in. uses the Stats template and language file. (and main sub template.) requires the view_stats permission. accessed from ?action=stats.
- Integration hooks
- integrate_forum_stats
getDailyStats
function getDailyStats(string $condition_string, array $condition_parameters = array()): void
Loads the statistics on a daily basis in $context.
called by DisplayStats().
Type | Parameter | Description |
---|---|---|
string |
$condition_string |
An SQL condition string |
array |
$condition_parameters |
Parameters for $condition_string |
SMStats
function SMStats(): void
This is the function which returns stats to simplemachines.org IF enabled! called by simplemachines.org.
only returns anything if stats was enabled during installation. can also be accessed by the admin, to show what stats sm.org collects. does not return any data directly to sm.org, instead starts a new request for security.