Installing Wiki Widgets

From Hexten

Jump to: navigation, search

Wiki Widgets is a MediaWiki extension. Once installed anyone can use Wiki Widgets but only the administrator of a wiki can install them. Assuming you are such an administrator please read on to find out how. If you're not an administrator go and find one to bug about Wiki Widgets.

Contents

[edit] Checklist

  • do you have access to upload files to the server?
  • does the server have PHP 5 installed

You absolutely must have PHP 5. Wiki Widgets won't work with older versions.

[edit] Download

You can download the latest version of Wiki Widgets here:

[edit] Previous Versions

[edit] Quick Install

Copy the subdirectory wx from the archive into your /wiki/extensions directory and add the following line at the end of LocalSettings.php

 include_once('extensions/wx/widget.php');

Create a new page (or use your sandbox) containing just

 
  <widget />
  

If all is well you should see a list of installed Wiki Widgets when you hit Preview. The corresponding list for this site is at Installed Widgets.

Possible problem

If you get on top of the page a list of lines like this one :

Notice: Undefined index: type in C:\Program Files\EasyPHP\www\barbules\extensions\wx\widget.php on line 108

you have to ...???...

[edit] Configure Google Maps API Key

The Google Maps Widget needs to be configured with the Google API key for your site.

Open /wiki/extensions/wx/widget/googlemap/init.php in an editor and edit the block of code that looks like this:

 // Add your Google Maps API key here
 
 'hexten.net'                => array(
     'api_key' =>
     'ABQIAAAAVyB2T4w5ugEDc0dyDm2JsRQP2ubrLxYY5QZUJTkbW0YyoXO-pxTRzltzTiSawNxGGoVhfN7zN4HHkg',
 ),

to include your API key. You should remove any leading 'www' from the hostname (hexten.net in the example above).

Personal tools
Mongers