2013-04-04, 06:09 PM
I built a new MyBB-MediaWiki user bridge. When you set it up correctly (LocalSettings.php edits I provide) you can only login, logout and register via MyBB.
MyBB logged in users (or those with "remember me" enabled) are auto logged into MediaWiki, matching on username. This happens via using the "mybbuser" cookie matching on UID and LoginKey to obtain a username.
Since MediaWiki normalizes usernames (replaces underscores with a space) if there are two users with similar names, such as "name_1" and "name 1", the first user who registered in MyBB is accepted and logged in and the other user is not. He/she would have to change their MyBB username in order to use the Wiki.
This is not something easily changed in MediaWiki so I worked it this way.
MediaWiki "sysop" permissions are assigned on the fly when being logged in, based on the group IDs listed you provide as admins. Only MyBB users in groups you provide as allowed are logged in. Users in a banned group, again your setting, are not allowed regardless of what other groups they are in.
MediaWiki user is created if an existing username is not found. In either case of found or new, the wiki user email is updated to match the MyBB user at login and the wiki real name defaults to the MyBB user, though once it is changed via wiki preferences page, that name is retained, even after a MyBB username change.
This is version 1.0 and it seems to be working on my localhost. Use at your own risk. This is a fork from the Auth_SMF extension, with permission.
Just install the attached into your MediaWiki root folder and apply the edits as described in the file to your LocalSettings.php file.
I removed the attachment and moved it to my site for public download. This will allow me to make sure there is only file to maintain.
http://www.communityplugins.com/forum/my...own&did=22
MyBB logged in users (or those with "remember me" enabled) are auto logged into MediaWiki, matching on username. This happens via using the "mybbuser" cookie matching on UID and LoginKey to obtain a username.
Since MediaWiki normalizes usernames (replaces underscores with a space) if there are two users with similar names, such as "name_1" and "name 1", the first user who registered in MyBB is accepted and logged in and the other user is not. He/she would have to change their MyBB username in order to use the Wiki.
This is not something easily changed in MediaWiki so I worked it this way.
MediaWiki "sysop" permissions are assigned on the fly when being logged in, based on the group IDs listed you provide as admins. Only MyBB users in groups you provide as allowed are logged in. Users in a banned group, again your setting, are not allowed regardless of what other groups they are in.
MediaWiki user is created if an existing username is not found. In either case of found or new, the wiki user email is updated to match the MyBB user at login and the wiki real name defaults to the MyBB user, though once it is changed via wiki preferences page, that name is retained, even after a MyBB username change.
This is version 1.0 and it seems to be working on my localhost. Use at your own risk. This is a fork from the Auth_SMF extension, with permission.
Just install the attached into your MediaWiki root folder and apply the edits as described in the file to your LocalSettings.php file.
I removed the attachment and moved it to my site for public download. This will allow me to make sure there is only file to maintain.
http://www.communityplugins.com/forum/my...own&did=22