Extension:ClickCounter

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manual - list
Crystal Clear action run.png
Click Counter

Release status: beta

Description Add some functions for counting user's clicks on predefined links
Author(s) EnricoDagatalk
Last version 0.1 (May 20, 2009)
MediaWiki 1.11+
License No license specified
Download see below
Check usage and version matrix

Contents

What can this extension do? [edit]

Usage [edit]

Download instructions [edit]

You can download the zp file here: http://www.ontologydesignpatterns.org/clickcounter/clickcounter-0.1.tar.gz

Installation [edit]

To install this extension, Uncompress the tarball first launch the SQL in the /db/createtable.sql file to create the table for hosting the click logs, then add the following to LocalSettings.php:

#add configuration parameters here
#setup user rights here
require_once("extensions/ClickCounter/includes/CC_Setup.php");

and copy directory "ClickCounter" from the tarball to "extensions/ClickCounter" of your Mediawiki installation

Requirements [edit]

  • MediaWiki version 1.11+
  • MySQL 5+

Functionalities [edit]

Two new parser functions are provided by this extension:

{{#countit:<link> |<message>}}

to register the user's link, and

{{#getcount:<link>|}}

to retrieve the number of clicks for a certain link.

Administrator can see a complete list of click counts (link+number) from the Special page Special:CountSummary.