User:Lysander/RedirectWarning: Difference between revisions

From BoyWiki
No edit summary
No edit summary
 
Line 2: Line 2:


==Installation==
==Installation==
*Download and place the file(s) in a directory called RedirectWarning in your extensions/ folder.
*[https://github.com/Inclumedia/RedirectWarning/archive/master.zip Download] and place the file(s) in a directory called RedirectWarning in your extensions/ folder.
*Add the following code at the bottom of your LocalSettings.php:
*Add the following code at the bottom of your LocalSettings.php:
  require_once "$IP/extensions/RedirectWarning/RedirectWarning.php";
  require_once "$IP/extensions/RedirectWarning/RedirectWarning.php";
*Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
*Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Latest revision as of 02:46, 13 April 2015

The RedirectWarning extension adds a special page, Special:RedirectWarning, that makes it possible to link indirectly to external sites via a page that warns, e.g., "You are about to leave FooWiki."

Installation

  • Download and place the file(s) in a directory called RedirectWarning in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/RedirectWarning/RedirectWarning.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.