UserInfoPlugin
Render information about users on a TWiki site
This plugin analyzes the log files of your twiki-engine and extracts useful information to be displayed on your site.
NOTE: Please respect the privacy of your users and don't display too much information.
Syntax Rules
Tag |
Description |
Default |
%VISITORS{format="..." max="..." sep="..." header="..." footer="..."}% |
list of users currently logged in |
format="\t* $wikiusername" sep="$n" max="unlimited" |
%NRVISITORS% |
number of users currently online |
|
%LASTVISITORS{format="..." max="..." sep="..." days="..." header="..." footer="..."}% |
list of users that recently visited the site |
format="\t* $date: $wikiusername" sep="$n" max="unlimited" days="1" |
%NRLASTVISITORS{days="..."}% |
list of users that recently visited the site |
days="1" |
%NRUSERS% |
number of registered users |
|
%NRGUESTS% |
number of guest users currently online |
|
%NEWUSERS{format="..." max="..." sep="..." header="..." footer="..."}% |
list of users that recently registerd |
format="\t* date: $wikiusername" sep="$n" max="10" |
The format parameter might contain the following variables:
Variable |
Description |
Valid in |
$counter |
enumeration |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$wikiname |
wikiname of the visitor |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$username |
username of the visitor |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$wikiusername |
wikiusername of the visitor |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$date |
date of last visit/registration |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$time |
time of last visit |
%VISITORS% , %LASTVISITORS% |
$host |
host of visitor |
%VISITORS% , %LASTVISITORS% |
$topic |
topic that a visitor viewed last |
%VISITORS% , %LASTVISITORS% |
$n |
newline |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$quot |
double-quote sign |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$percnt |
percentage sign |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
$dollar |
dollar sign |
%VISITORS% , %LASTVISITORS% , %NEWUSERS% |
Plugin Settings
- Set SHORTDESCRIPTION = Render information about users on a TWiki site
- add a list of host addresses to ignore users coming from them
- add a list of users to ignore
Plugin Installation Instructions
- Download the ZIP file from the Plugin web (see below)
- Unzip
UserInfoPlugin.zip
in your twiki installation directory. Content: File: | Description: |
data/TWiki/UserInfoPlugin.txt | Plugin topic |
lib/TWiki/Plugins/UserInfoPlugin.pm | Plugin Perl module |
lib/TWiki/Plugins/UserInfoPlugin/Core.pm | Plugin Perl module |
- Visit
configure
in your TWiki installation, and enable the plugin in the {Plugins} section.
Test
If the plugin is installed correctly then you should get valid output for the tags below:
0 of 12 registered user(s), 1100 guest(s) currently online:
|
0 visitor(s) today (22 Dec 2024):
|
Recently registered users:
|
Plugin Info