button in the left topic margin, linking to the WhereIs topic.
%WHEREIS{ action="recordlocation" }% records the location of the logged in user. No additional parameters are supported. No action is done if the user is not authenticated.
This variable needs to be called to record user location. It can be done by enabling the whereis skin template, which contains the variable. Example setting in TWikiPreferences:
whereis skin template and the tagme skin template clash and can't be used together. If you want to use tagging and this plugin you need to manually merge the content of template/view.tagme.tmpl into template/view.whereis.tmpl, and set the SKIN to whereis, topmenu, pattern.
%WHEREIS{ action="setlocation" }% sets the name of a location associated with the IP address of the logged in user. Additional parameters:
| Parameter | Explanation | Default |
|---|---|---|
address="..." |
IP address | IP address of logged in user |
location="..." |
Location name |
%WHEREIS{ action="showlocation" }% shows the location and time of a user. Additional parameters:
| Parameter | Explanation | Default |
|---|---|---|
user="..." |
WikiName of user | logged in user |
lastseenmsg="..." |
Last seen message. Variables: • $wikiname - WikiName of the user, such as JimmyNeutron • $wikiusername - Web.WikiName of user, such as Main.JimmyNeutron • $spacedname - spaced-out WikiName of user, such as Jimmy Neutron • $location - name of location • $ago - elapsed time |
{LastSeenMsg} configure setting |
notseenmsg="..." |
Not yet seen message. • Same $wikiname, $wikiusername and $spacedname variables as above. |
{NotSeenMsg} configure setting |
%WHEREIS{ action="editlocations" }% shows a table with known locations and users last seen at each location. Hover over a row to update a location. Use the last row to add a location. Additional parameter:
| Parameter | Explanation | Default |
|---|---|---|
limit="..." |
Limit number of recent entries | "100" |
%WHEREIS{ action="showrecent" }% shows recent locations and times of users. Additional parameters:
| Parameter | Explanation | Default |
|---|---|---|
limit="..." |
Limit number of recent entries | "20" |
header="..." |
Table header | "| User | At location | Last seen |" |
format="..." |
Format of a table row. Variables: • $wikiname - WikiName of the user • $wikiusername - Web.WikiName of user • $spacedname - spaced-out WikiName of user • $location - name of location • $ago - elapsed time |
"| $wikiusername | $location | $ago |" |
twiki/working/work_areas/WhereIsPlugin.
IP address data is stored in files named addr-<ip>.txt, e.g. one file per recorded IP address. This data is used to map from IP address to location name.
User access data is stored in files named addr-<wikiname>.txt, e.g. one file per user. This data is used to record the most recent access time and IP address of a user.
WhereIsPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/WhereIsPlugin.txt | Plugin topic |
data/TWiki/WhereIs.txt | Report topic |
pub/TWiki/WhereIsPlugin/*.gif and *.png | Image files |
templates/view.whereis.tmpl | Skin template |
templates/whereisdialog.tmpl | New location dialog box template |
templates/whereiseditlocations.tmpl | Edit location table template |
lib/TWiki/Plugins/WhereIsPlugin.pm | Plugin Perl module |
lib/TWiki/Plugins/WhereIsPlugin/Core.pm | Plugin Perl module |
lib/TWiki/Plugins/WhereIsPlugin/Config.spec | Configure spec file |
whereis skin template to the SKIN path. Example setting in TWikiPreferences: ---+!! %FORMFIELD{ "FirstName" topic="%INCLUDINGTOPIC%" }% %FORMFIELD{ "LastName" topic="%INCLUDINGTOPIC%" }% <span style="font-size: 60%"> %FORMFIELD{ "StatusUpdate" topic="%INCLUDINGTOPIC%" }% — [[%SYSTEMWEB%.WhereIs][<img src="%PUBURLPATH%/%SYSTEMWEB%/WhereIsPlugin/whereis.gif" alt="" title="Where is?" width="16" height="16" border="0" />]] %WHEREIS{ user="WhereIsPlugin" }%</span>
| Plugin Author: | TWiki:Main.PeterThoeny |
| Copyright: | © 2014-2015 Wave Systems Corp. © 2014-2015 TWiki:Main.PeterThoeny © 2014-2015 TWiki:TWiki.TWikiContributor |
| License: | GPL (GNU General Public License |
| Sponsor: | Wave Systems Corp. |
| Plugin Version: | 2015-01-07 |
| 2015-01-07: | TWikibug:Item7568 |
| 2014-09-24: | TWikibug:Item7527 |
| 2014-07-03: | TWikibug:Item7527 |
| 2014-07-02: | TWikibug:Item7527 |
| 2014-07-01: | TWikibug:Item7527 |
| 2014-06-30: | TWikibug:Item7527 |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.2 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Plugin Benchmark |
GoodStyle nn%, FormattedSearch nn%, WhereIsPlugin nn% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/WhereIsPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/WhereIsPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/WhereIsPluginAppraisal |
| I | Attachment | History | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|---|
| |
WhereIsPlugin.md5 | r10 r9 r8 r7 r6 | manage | 0.2 K | 2015-01-08 - 00:29 | PeterThoeny | |
| |
WhereIsPlugin.tgz | r10 r9 r8 r7 r6 | manage | 177.2 K | 2015-01-08 - 00:29 | PeterThoeny | |
| |
WhereIsPlugin.zip | r10 r9 r8 r7 r6 | manage | 183.3 K | 2015-01-08 - 00:29 | PeterThoeny | |
| |
WhereIsPlugin_installer | r5 r4 r3 r2 r1 | manage | 4.0 K | 2015-01-08 - 00:29 | PeterThoeny |