Extension:Popup

What can this extension do?
This extension shows a popup on every nth page request of a user by setting a cookie and counting page requests. I used it to inform users that there was a Wiki downtime to come.

Usage
Simply create the folder  and copy the code below into the two files popup.php and popup.html. Then adjust the parameters in the popup.php and the popup.html according to your needs.

Download instructions
Please copy and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Code
popup.php

popup.html

TODO

 * The extension should use the ResourceLoader for MW versions >= 1.17