Skip to content

MWStake/GlobalStats-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GlobalStats

Mediawiki extension.

Description

  • Version 1.2.1
  • GlobalStats collects everyday stats for wiki.
  • See special page Special:GlobalStats for results.

Installation

  • Make sure you have MediaWiki 1.29+ installed.
  • Download and place the extension to your /extensions/ folder.
  • Add the following code to your LocalSettings.php: wfLoadExtension( 'GlobalStats' );
  • Add file with name $wgSitename.csv (see LocalSettings.php) to the /data/ folder.
  • In case od wikifarm more files like this can be added.
  • Create bot account at wiki.
  • Copy cron/config-bot.sample.php to cron/config-bot.php and set variables.
  • Set variables in cron/config.php.
  • Set CRON job for cron/updateStat.php ... every day.
  • /data/ folder and cron/logincookie.txt must be writable for user running PHP.

Details

  • Running a couple of times (with some delay) recommended. Server can be down at this exact moment.
  • Stats are stored in CSV file. New line is appended only once a day.
  • In case of Wikifarm with one shared extensions folder, we can create CSV files for all sites.

SpecialPage

Special:GlobalStats - browsing and exporting statistics.

Internationalization

This extension is available in English and Czech language. For other languages, just edit files in /i18n/ folder.

RELEASE NOTES

1.2

  • views count removed

1.2.1

  • $out->addWikiText deprecated, use $out->addWikiTextAsInterface instead

Authors and license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages