Code: Select all
File Version: $Id: README,v 1.8 2007/10/03 14:51:05 nkd Exp $ Create a group in PHPBB for your wiki users. I named mine "Wiki". You will need to put the name you choose in the code below. NOTE: In order for a user to be able to use the wiki they will need to be a member of the group you made in the step above. Put Auth_phpbb.php in /extensions/ Put iAuthPlugin.php in /extensions/ Open LocalSettings.php. Put this at the bottom of the file. Edit as needed. /*-----------------[ Everything below this line. ]-----------------*/ // PHPBB User Database Plugin. (Requires MySQL Database) require_once './extensions/Auth_phpBB.php'; $wgAuth_Config = array(); // Clean. $wgAuth_Config['WikiGroupName'] = 'Wiki'; // Name of your PHPBB group // users need to be a member // of to use the wiki. (i.e. Wiki) $wgAuth_Config['UseWikiGroup'] = true; // This tells the Plugin to require // a user to be a member of the above // phpBB group. (ie. wiki) Setting // this to false will let any phpBB // user edit the wiki. $wgAuth_Config['UseExtDatabase'] = true; // This tells the plugin that the phpBB tables // are in a different database then the wiki. // The default settings is false. /*-[NOTE: You only need the next four settings if you set $wgAuth_Config['UseExtDatabase'] to true.]-*/ // $wgAuth_Config['MySQL_Host'] = 'host'; // phpBB MySQL Host Name. // $wgAuth_Config['MySQL_Username'] = 'username'; // phpBB MySQL Username. // $wgAuth_Config['MySQL_Password'] = 'password'; // phpBB MySQL Password. // $wgAuth_Config['MySQL_Database'] = 'database_name'; // phpBB MySQL Database Name. $wgAuth_Config['UserTB'] = 'phpbb_users'; // Name of your PHPBB user table. (i.e. phpbb_users) $wgAuth_Config['GroupsTB'] = 'phpbb_groups'; // Name of your PHPBB groups table. (i.e. phpbb_groups) $wgAuth_Config['User_GroupTB'] = 'phpbb_user_group'; // Name of your PHPBB user_group table. (i.e. phpbb_user_group) $wgAuth_Config['PathToPHPBB'] = '../phpbb3/'; // Path from this file to your phpBB install. // Local $wgAuth_Config['LoginMessage'] = '<b>You need a phpBB account to login.</b>'; // Localize this message. $wgAuth_Config['NoWikiError'] = 'You are not a member of the required phpBB group.'; // Localize this message. $wgAuth = new Auth_phpBB($wgAuth_Config); // Auth_PHPBB Plugin.
I'm using the latest versions of both (that'd be with mediawiki 1.11.0) and it works just fine for me.piegus wrote:I have a queston. Is this mod is compatible with phpBB 3.0.0 and mediaWiki. Or is this mod need to be rewrited??
So you tell me that 3.0.0 Gold and MediaWiki (newest) is working with this realase (brigde) from damnianNais wrote:I'm using the latest versions of both (that'd be with mediawiki 1.11.0) and it works just fine for me.
It's running with phpbb3 gold and mediawiki 1.11.0. As far as I know it's also the latest version of damnian's mediawiki auth plugin. Albeit with the occasional auto-login oddities, which I don't care too much about anyway, it works fine.piegus wrote:So you tell me that 3.0.0 Gold and MediaWiki (newest) is working with this realase (brigde) from damnianNais wrote:I'm using the latest versions of both (that'd be with mediawiki 1.11.0) and it works just fine for me.
Code: Select all
$wgCookieDomain = '.domain.com'; $wgCookiePath = '/'; // Optional, defaults to '/' $wgCookieSecure = false; // Optional, only change on scheme mismatch
Code: Select all
'U_REGISTER' =>[code] and setting that to something like [code]append_sid("http://www.domain.com/wiki/Special:Userlogin&type=signup"),
One solution I know of is the phpBB extension for Mediawiki. I've not used it though so I'm not sure how successful it is.Twill wrote:What if we have an existing phpBB userbase and are wanting media wiki to call that for login data rather than the other way around?