MediaWiki Integration

Here is a simple integration of Geeklog with MediaWiki, inspired by blitzed.org.

Caveats

This is a very simple integration. Please note the following before you proceed.

  • All this installation does is allow your users to log in using their Geeklog username and password.
  • Other information is not taken from the Geeklog database as yet.
  • Geeklog groups and access rights are not used - you need to set user rights in the basic installation.
  • The MediaWiki is not embedded in the Geeklog header and footer functions.
  • Usernames with underscores will not work. You will get a blank page when you try to log in.

Installation

The integration is quite simple; just follow the following steps.

  • Get the latest version of Mediawiki and install it on your webserver. I used 1.5.2.
  • Install MediaWiki by following the instructions included and ensure that the installation is working.
  • In the folder /extensions/, add the file AuthGeeklog.php. Edit the first line to point to your config.php file.
  • Overwrite the file /includes/SpecialPreferences.php with this file.
  • Add the following text to the bottom of your LocalSettings.php file in the MediaWiki installation:

    # Use Geeklog Authentication
    require_once( 'extensions/AuthGeeklog.php' );
    $wgAuth = new AuthGeeklog();

  • Go to your MediaWiki installation, and log in.

Further work

If anyone makes any improvements on this, please let me know and I'll update this page and credit you. There are lots of ways that the integration could be improved, starting with the user functions in /includes/User.php.

|