Extension:Jehovahsays

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
jehovahsays
Release status: stable
Implementation Parser extension
Description Allows custom HTTP security headers to be added to the wiki as configured in the LocalSettings.php file.
Author(s) Morgan Shatee Byers (jehovahsaystalk)
Latest version 1.1
MediaWiki 1.27+
PHP PHP5+ and lower
License MIT License
Download Download
README.md
Example @jehovahsays
Parameters

require_once "$IP/extensions/jehovahsays/jehovahsays.php";

$wgSecurity = 'Your Custom HTTP Security Headers go here';
Hooks used
BeforePageDisplay
Mediawiki 1.27+ & lower
Translate the Jehovahsays extension if it is available at translatewiki.net
Check usage and version matrix.

Jehovahsays extension allows custom HTTP security headers to be added to the wiki as configured in the LocalSettings.php file.

Installation[edit]

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

Configuration[edit]

$wgSecurity = 'Your Custom HTTP Security Headers go here';

Trouble shooting[edit]

After downloading jehovahsays-master.zip from Git hub , extract the folder named jehovahsays-master.
Rename the folder jehovahsays-master to jehovahsays.
Copy the folder named jehovahsays and paste it into your Mediawiki Extensions folder.
Open your localsetting.php
copy and paste the code below

require_once "$IP/extensions/jehovahsays/jehovahsays.php";
$wgSecurity = 'replace the text here with your custom http security headers or programming language';


And now with code below added to your localsettings.php you can add html to the bottom of every wiki article.

$wgBottomSecurity = 'replace the text here with your Text or programming language';

See also[edit]

Extension:WikiBanner