%RECENTVISITOR{ action="user" ... }%
| Parameter | Description | Default |
|---|---|---|
"user" oraction="user" |
Show statistics of individual user. | (none) |
name="..." |
WikiName of person | (current user) |
format="..." |
Format of report. Supported tokens: • $date - date of last visit• $time - time of last visit (GMT)• $ago - how long ago• $ip - IP address (only shown to non-administrators if enabled in configure)• $n, $nop, $quot, $percnt, $dollar - standard FormatTokens |
"Last seen $ago ago" |
notfound="..." |
Message shown if user is not found. | "Never seen" |
%RECENTVISITOR{ action="recent" ... }%
| Parameter | Description | Default |
|---|---|---|
"recent" oraction="recent" |
Show statistics of most recent visitors. | (none) |
format="..." |
Format of each line of the report. Supported tokens: • $username - login name of user• $wikiname - WikiName of user• $wikusername - WikiName prefixed with Public web name• $date - date of last visit• $time - time of last visit (GMT)• $ago - how long ago• $ip - IP address (only shown to non-administrators if enabled in configure)• $n, $nop, $quot, $percnt, $dollar - standard FormatTokens |
" * $wikiusername |
separator="..." |
Separator between lines. Standard FormatTokens are expanded. | "$n" (newline) |
limit="..." |
Limit the number of lines. | "10" |
| You type | You get (if installed) | Simulated example |
|---|---|---|
%RECENTVISITOR{
action="user"
name="TWikiAdminUser"
format="Last seen $ago ago ($date
$time)"
}%
| Never seen | Last seen 3 weeks ago (2011-02-03 06:22) |
| You type | You get (if installed) | Simulated example |
|---|---|---|
%RECENTVISITOR{
action="recent"
limit="5"
}%
|
|
|
| You type | You get (if installed) | Simulated example | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%RECENTVISITOR{
action="recent"
format="| $wikiusername | $date |"
limit="5"
}%
|
|
|
| You type | You get (if installed) | Simulated example | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| *Name* | *Last seen* | *Where* |
%RECENTVISITOR{
action="recent"
limit="5"
format="| $wikiusername | $ago ago
| $percntGEOLOOKUP{$ip}$percnt |"
}%
|
|
|
RecentVisitorPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/RecentVisitorPlugin.txt | Plugin topic |
lib/TWiki/Plugins/RecentVisitorPlugin.pm | Plugin Perl module |
$TWiki::cfg{Plugins}{RecentVisitorPlugin}{Debug} = 0; # debug flag, 0 or 1 $TWiki::cfg{Plugins}{RecentVisitorPlugin}{ShowIP} = 0; # show IP address, 0 or 1 $TWiki::cfg{Plugins}{RecentVisitorPlugin}{OnlyAdmins} = 0; # show reports to administrators only, 0 or 1
| Plugin Author: | TWiki:Main.PeterThoeny |
| Copyright: | © 2011 TWiki:Main.PeterThoeny © 2011 TWiki:TWiki.TWikiContributor |
| License: | GPL (GNU General Public License |
| Plugin Version: | 2011-06-06 |
| Change History: | |
| 2011-06-06: | TWikibug:Item6725 |
| 2011-05-14: | TWikibug:Item6701 |
| 2011-05-01: | TWikibug:Item6701 |
| 2011-02-03: | TWikibug:Item6646 |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| TWiki:Plugins.Benchmark |
GoodStyle nn%, FormattedSearch nn%, RecentVisitorPlugin nn% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/RecentVisitorPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/RecentVisitorPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/RecentVisitorPluginAppraisal |