Extension:ClickCounter

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Click Counter
Release status: beta
Description Add some functions for counting user's clicks on predefined links
Author(s) EnricoDagatalk
Latest version 0.1 (2009-05-20)
MediaWiki 1.11+
License No license specified
Download see below
Translate the ClickCounter extension if it is available at translatewiki.net
Check usage and version matrix.

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.