Github mirror of MediaWiki extension HitCounters - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
转到文件
Translation updater bot 244d21a4dc Localisation updates from https://translatewiki.net.
Change-Id: Ic6a9a3efe95b44c335629f1b5c8f25b5db8ef83b
2024-05-16 09:26:37 +02:00
.phan Clean up phan 2024-04-13 14:47:34 -04:00
i18n Localisation updates from https://translatewiki.net. 2024-05-16 09:26:37 +02:00
includes Replace usage of wfGetDB() 2024-03-25 21:43:43 +08:00
sql Add PostgreSQL support to HitCounters 2020-02-18 14:53:15 +02:00
tests Clean up phan 2024-04-13 14:47:34 -04:00
.editorconfig Initial cleanup 2023-11-28 11:21:25 +01:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-04-05 11:12:02 +00:00
.gitignore Version 0.3.4 2021-06-13 17:32:33 -04:00
.gitreview Whoops, track not trace 2016-10-24 17:02:43 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-17 19:53:00 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 03:55:45 +00:00
COPYING New HitCounters extension. 2015-06-02 18:10:20 -04:00
Gruntfile.js build: Replace jsonlint with eslint 2021-02-17 07:32:36 +01:00
HitCounters.i18n.alias.php Add special page aliases for Serbian language 2023-10-28 14:41:56 +02:00
HitCounters.i18n.magic.php Add missing magic word for Serbian (Cyrillic script) 2023-10-28 14:40:33 +02:00
Makefile Version 0.3.4 2021-06-13 17:32:33 -04:00
README.md Version 0.3.4 2021-06-13 17:32:33 -04:00
composer.json build: Updating composer dependencies 2024-05-05 20:01:03 +00:00
extension.json Initial cleanup 2023-11-28 11:21:25 +01:00
package-lock.json build: Updating grunt-banana-checker to 0.12.0 2024-05-10 10:59:59 +00:00
package.json build: Updating grunt-banana-checker to 0.12.0 2024-05-10 10:59:59 +00:00
psalm-autoload.php Initial cleanup 2023-11-28 11:21:25 +01:00
psalm.xml Initial cleanup 2023-11-28 11:21:25 +01:00
update.php Replace usage of wfGetDB() 2024-03-25 21:43:43 +08:00

README.md

HitCounters

In MediaWiki 1.25, hit counters have been removed. The reason is given in the commit message:

The hitcounter implementation in MediaWiki is flawed and needs removal. For proper metrics, it is suggested to use something like Piwik or Google Analytics.

More discussion can be found at mediawiki.org.

If you wish to continue using the HitCounter's despite the flawed implementation, this extension should help.

Note that some steps will be needed to maintain you current hit count. When those steps are understood, they'll be documented.

Default settings

  • $wgDisableCounters = false;

Set to true to disable them completely.

  • $wgEnableAddPageId = false;

Set to true to display the page id on Special:PopularPages.

  • $wgEnableAddTextLength = false;

Set to true to display the page length on Special:PopularPages.

  • $wgHitcounterUpdateFreq = 1;