Your version worked perfectly! Please continue to develop it.
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.
I see you found a tester yet
If you can test, it would be better.
More testers, better for me as i receive feedbacks.
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
(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.
OK, thats good. I wish you luck!
I haven't encountered any bugs so far because none of my members have underscores in their names yet.
Thanks!
I've the AuthMybb.php, what else do I need to install?