MyBB Community Forums

Full Version: MyBB Mediawiki
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Your version worked perfectly! Please continue to develop it. Big Grin

And session sharing would be great ^^ Goog work flash.tato!
There was the followig on the Mediawiki wiki, I wonder if this could be useful?

External Sessions

In order to check the login status against some external session management scheme, use the AutoAuthenticate hook (MediaWiki 1.5 - 1.12) or UserLoadFromSession (since MediaWiki 1.13). This can be used to implement a single-signon setup, in addition to simple account sharing.
I've yet realized what is necessary for singe sign-on now i have to write the code. Big Grin
I see you found a tester yet Toungue
If you can test, it would be better. Smile

More testers, better for me as i receive feedbacks. Wink
Hello, it seems to be a bug with users that have underscore in their username as mediawiki converts underscores to spaces.
Here's what the SMF extensions does for a workaround:
// ....
// If the username has an underscore or space accept the first registered user.
		if(strpos($user_settings[$smf_map['member_name']], ' ') !== false || strpos($user_settings[$smf_map['member_name']], '_') !== false)
		{
			// Format to wiki standards (underscores are converted to spaces).
			$case1 = str_replace('_', ' ', $user_settings[$smf_map['member_name']]);
			// Format the alternative case (spaces converted to underscores).
			$case2 = str_replace(' ', '_', $case1);

			$request = $wgAuth->query("
				SELECT $smf_map[id_member] 
				FROM $smf_settings[db_prefix]members
				WHERE $smf_map[member_name] = '{$case1}' 
					OR $smf_map[member_name] = '{$case2}'
				ORDER BY $smf_map[date_registered] ASC
				LIMIT 1");

			list($id) = mysql_fetch_row($request);
			mysql_free_result($request);

			// Sorry your name was taken already!
			if($id != $ID_MEMBER)
			{
				if($user->isLoggedIn())
					$user->logout();
				return true;
			}
		}

		// Lastly check to see if they are not banned and allowed to login
// .....
I know, i didn't handle yet the MediaWiki string standard as i didn't understand it, the documentation about it is very confusing so i'll have to look into the code probably Confused
(2008-09-30, 03:52 PM)flash.tato Wrote: [ -> ]I've yet realized what is necessary for singe sign-on now i have to write the code. Big Grin

OK, thats good. I wish you luck! Smile

I haven't encountered any bugs so far because none of my members have underscores in their names yet.

Thanks!
(2006-12-31, 08:16 PM)Cool_Guy Wrote: [ -> ]http://www.ipbwiki.com/Ipb_Wiki:Integrat..._MediaWiki

I am interested in someone making this for MyBB. Wink
There probarbly already is one.
Well, now i did my best for fixing the username problem but i'm still confused about MediaWiki string format so i've to ask you for testing it.

I updated my precedent post:
http://community.mybboard.net/thread-150...#pid256877
I've the AuthMybb.php, what else do I need to install?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20