##
## Mod title: Users Online
##
## Mod version: 1.2.1
## Works on PunBB: 1.2.*
## Release date: 2009-09-09
## Author: Koos (pampoen10@yahoo.com)
##
## Description: Adds the follow 3 features to the board info on
## the index.php page:
## *Displays users online in past xx minutes/hours
## *Displays most users online ever
## *Colored Usergroups
##
## Affected files: index.php
## viewtopic.php
##
## Affects DB: no
##
## Notes: User Stats mod must be installed to be able to
## display users online in past xx minutes/hours
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
################################################################################
## CHANGELOG:
## 1.2.1 : fixed profile link in 'users online in the past' list
## 1.2.0 : now possible to apply group color to any usergroup
## can now apply group color to usernames in topic view
## fixed bug in 'users online in the past' list
## other fixes and improvements
## 1.1.1 : sorting of 'users online in the past' list now case-insensitive
## 1.1.0 : can now edit the config from the admin cp
## added an additional option to the config
## 1.0 : initial release
################################################################################
#
#---------[ 1. UPLOAD ]-------------------------------------------------
#
Upload all files contained in archive to forum root.
#
#---------[ 2. SET PERMISSIONS ]-------------------------------------------------
#
CHMOD usersonline_config.php to 766.
#
#---------[ 3. OPEN ]-------------------------------------------------------
#
index.php
#
#---------[ 4. FIND (line: 162) ]---------------------------------------------------------
#
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
#
#---------[ 5. AFTER, ADD ]--------------------------------------------------
#
// USERSONLINE MOD:
include PUN_ROOT."usersonline_config.php";
if ($usersonline_enable)
{ // Load users online module
require PUN_ROOT.'usersonline.php';
}
else
{
#
#---------[ 6. FIND (line: 225) ]---------------------------------------------------------
#
$footer_style = 'index';
#
#---------[ 7. BEFORE, ADD ]--------------------------------------------------
#
}
#
#---------[ 8. OPEN ]-------------------------------------------------------
#
viewtopic.php
#
#---------[ 9. FIND (line: 201) ]---------------------------------------------------------
#
$username = ''.pun_htmlspecialchars($cur_post['username']).'';
#
#---------[ 10. REPLACE WITH ]---------------------------------------------------------
#
// USERSONLINE MOD: Apply group color to current poster
include PUN_ROOT."usersonline_config.php";
$username = ''.pun_htmlspecialchars($cur_post['username']).'';