Extension:DownloadCounter
Jump to navigation
Jump to search
![]() | This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
DownloadCounter Release status: unmaintained |
|
---|---|
Implementation | Tag |
Description | Add some functions for counting user's downloaded file(s) |
Author(s) | Eric Petit (Surfzoidtalk) |
Latest version | 0.4.0 (2014-05-09) |
MediaWiki | 1.11+ |
Database changes | Yes |
License | GNU General Public License 2.0 or later |
Download | |
Translate the DownloadCounter extension if it is available at translatewiki.net | |
The DownloadCounter extension can display the total number and the last date of downloaded files, which are recorded in the MySQL database.
Installation[edit]
- Download and place the file(s) in a directory called
DownloadCounter
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/DownloadCounter/DownloadCounter.php";
- Run the update script which will automatically create the necessary database tables that this extension needs.
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage[edit]
On your wiki page, you will setup an download like this:
[http://exemple.com/mediawiki/download.php?f=Setup-DataCollectorEdit.2.0.exe Download this great software here]
And display the recorded data like that:
<DownloadCounter name="Setup-DataCollectorEdit.2.0.exe" type="total"></DownloadCounter> total download. Last download was: <DownloadCounter name="Setup-DataCollectorEdit.2.0.exe" type="date"></DownloadCounter>