Extension:AuthElgg

Purpose
This extension shows how to edit the LocalSettings.php to authenticate against an Elgg (v. 1.5) installation on the same server.

Installation
Extension is in beta; proceed at your own risk!

include/GlobalFunctions.php /** * Initialise php session */ function wfSetupSession { wfRunHooks( 'BeforeSetupSession'); global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain, $wgCookieSecure, $wgCookieHttpOnly;
 * Install your wiki on the same server as Elgg
 * Open the media wiki file "include/GlobalFunctions.php"
 * Add the line "wfRunHooks( 'BeforeSetupSession');" after "function wfSetupSession {"
 * Install Extension:Blacklist


 * Open LocalSettings.php for the wiki and add the following at the bottom (you may also place in another file and include in LocalSettings.php)

e.g. Adding "$wgGroupPermissions['*']['edit'] = false; " will prevent unregistered users from editing pages Adding "$wgGroupPermissions['*']['view'] = false;" will prevent unregistred users from viewing pages, etc.
 * Also in local settings adjust the default permissions for unregistered users as desired

li#pt-anonlogin, li#pt-logout, li#pt-login, li#pt-anonlogout { 	display: none; }
 * Hide the login/logout links. Edit the css for your wiki skin (that file by default is skins/monobook/main.css)


 * To add a menu link in Elgg see Create an Elgg plugin

Source code
See above.