%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, Twiki, Inc. |
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: Plugins: Change global package variables from "use vars" to "our" -- TWiki:Main.PeterThoeny |
2011-05-14: | TWikibug:Item6701: Small fix in Config.spec -- TWiki:Main.PeterThoeny |
2011-05-01: | TWikibug:Item6701: Fix small warning issue if plugin is run by a shell script |
2011-02-03: | TWikibug:Item6646: Initial version |
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 |