create new tag
, view all tags


Show a site visit counter in a TWiki topic


The CounterPlugin maintains the Visitor count. Right now it is in it's infant state shows the count in Text mode. Would be modified soon to show count in more graphical way.

Syntax Rules

  • Edit the topic where you want to display the Visitor Count.
  • Write the word %COUNTER_PLUGIN% in this Topic.
  • You should see Visitor Counter in the Topic.


This text:

   * Counter: %COUNTER_PLUGIN%

Renders as follows:

  • Counter: %COUNTER_PLUGIN%

CounterPlugin Global Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %COUNTERPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show a site visit counter in a TWiki topic

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip CounterPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/CounterPlugin.txt Plugin topic
    lib/TWiki/Plugins/CounterPlugin.pm Plugin Perl module
  • Enable the CounterPlugin in configure.
  • Test if the installation was successful: See example above.

Plugin Info

Plugin Author: TWiki:Main.RahulMundke
Copyright: © 2003 TWiki:Main.RahulMundke
© 2003-2010, TWiki:TWiki.TWikiContributor
License: GPL (Gnu General Public License)
Plugin Version: 19433 (2010-09-04)
Change History:  
2010-09-05: TWikibug:Item6530: Doc improvements; changed TWIKIWEB to SYSTEMWEB -- TWiki:Main.PeterThoeny
20 Nov 2003: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/CounterPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/CounterPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 CounterPlugin.md5 r5 r4 r3 r2 r1 manage 0.2 K 2010-09-05 - 07:05 PeterThoeny  
Compressed Zip archivetgz CounterPlugin.tgz r5 r4 r3 r2 r1 manage 3.9 K 2010-09-05 - 07:05 PeterThoeny  
Compressed Zip archivezip CounterPlugin.zip r6 r5 r4 r3 r2 manage 5.3 K 2010-09-05 - 07:04 PeterThoeny  
Unknown file formatEXT CounterPlugin_installer r5 r4 r3 r2 r1 manage 3.4 K 2010-09-05 - 07:05 PeterThoeny  
Edit | Attach | Watch | Print version | History: r16 < r15 < r14 < r13 < r12 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r16 - 2013-10-16 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.