Extension:SMF Auth Lite Integration

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
SMF Auth Lite Integration

Release status: unknown

Implementation User identity
Description Authentication for SMF forums, (simple machines forum) ?
Author(s) DIN1031 (german wikipedia) (not sure if this correct)?
Last Version 1.0
License No license specified
Download SMF_Auth.zip


Contents

[edit] About

Simple Machines Forum — SMF in short — is a free, professional grade software package that allows you to set up your own online community within minutes.

I think this extension allows some sort of authentication for SMF forums...??? Bouncingmolar 06:24, 15 July 2007 (UTC)

[edit] Version Infomation

  • Extension: SMF AUTH Lite Integratione
  • Forum: SMF (http://www.simplemachines.org/)
  • Version: 1.0
  • Released: 09.03.2006
  • Forum Version: 1.0.x (I dont't know if it work on newer Version, but i think the API Work in each Version :P)

[edit] Requirements

- Working SMF

- Correct Working SMF Api (http://www.simplemachines.org/download/?tools) (Must be installed!)

This API is made by the SMF Programmers so i don't know if something change it could not work any more...

- And last but not least correct settings for the extension in the Local Settings

[edit] Installation

1. Download SMF_Auth.zip.

2. Extract it and upload to the Wiki installation

---> SMF_Auth.php in the "./extension" dir

---> Userlogin.php in the "./includes/templates/" dir

3. Open LocalSettings.php and make the following changes. I added all of these lines of code to the end of my LocalSettings.php file (before the ?>).

//SMF Auth Lite Intigration
//Don't foget to download the API
//This requires a user be logged into the wiki to make changes.
//$wgWhitelistEdit = true; // MediaWiki 1.4 Settings
$wgGroupPermissions['*']['edit'] = FALSE; // MediaWiki 1.5 Settings
//Specify who may create new accounts: 0 means no, 1 means yes
//Should be FALSE!, if not than SMF Lite can overwrite user fo Wiki or other strange things...
//$wgWhitelistAccount = array ( 'user' => 0, 'sysop' => 1, 'developer' => 1 ); // MediaWiki 1.4 Settings
$wgGroupPermissions['*']['createaccount'] = FALSE; // MediaWiki 1.5 Settings
//SMF API Link :) Takes all the things i need XD
//Correct the link to the Location of the working smf_api...
$wgSMFPathAPI                          = "/home/.../forum/smf_api.php";
//Load the Extension
require_once './extensions/Auth_SMF.php'; 
//Set some mebername => sysop name convertion
//Are there Admins who need a Special Name Conversion for SysOp Option (Work only on Admins!)
//Each line should be fild like this
//'your member name' => 'new member name',
$wdSMF_AdminNameCovert = array(
'your member name' => 'new member name',
);
//Set the new Auth
$wgAuth                 = new Auth_SMF();     // Use New AuthPlugin.
//Some Settings for the User Template:
//Like Login Informations or Register Information :)
//{{FORUM_URL}} use the $smf_settings['forum_url'] for the link :)
$wgSMF_Login_Info       = 'Please Login with your <a href="{{FORUM_URL}}/">Forum user namen</a>.';
$wgSMF_Register_Info    = 'Or <a href="{{FORUM_URL}}/index.php?action=register">Register here</a>';
$wgSMF_User_Loaded      = "Okay you are Logged in, please push the login button";

4. Correct the path to the api -> $wgSMFPathAPI = "/home/.../forum/smf_api.php"; in the LocalSettings :)

[edit] Something else

I don't update this anymore, because it works for my forum and I've no time to do it. (To much other things to update and my Office need me to offen)

It's free to use for anyone who have the will to change it and make it better ;D.

Personal tools