Attached to this post is a beta version of a converter to convert all zorum members/boards/topics and messages to SMF. Please feedback any issues you may have with it!
Note, as Zorum uses a different password system to SMF you need to add these lines to LogInOut.php, otherwise all users need to request a new password:
Replace:
if ($user_settings['passwd'] == crypt($_REQUEST['passwrd'], substr($_REQUEST['passwrd'], 0, 2)) || $user_settings['passwd'] == md5($_REQUEST['passwrd']))
With:
$request = db_query("SELECT PASSWORD('$_REQUEST[passwrd]')");
list ($zorum_password) = mysql_fetch_row($request);
mysql_free_result($request);
if ($user_settings['passwd'] == $zorum_password)
{
updateMemberData($user_settings['ID_MEMBER'], array('passwd' => '\'' . $md5_passwrd . '\''));
$user_settings['passwd'] = $md5_passwrd;
}
elseif ($user_settings['passwd'] == crypt($_REQUEST['passwrd'], substr($_REQUEST['passwrd'], 0, 2)) || $user_settings['passwd'] == md5($_REQUEST['passwrd']))
Regards,
Grudge
This got downloaded, did anyone actually test to see if it worked?!
You probably want...
SELECT /*!41000 OLD_PASSWORD('$_REQUEST[passwrd]'), */PASSWORD('$_REQUEST[passwrd]')
-[Unknown]
Sorry Grudge,
I never saw the post, and I originally requested the converter.
I'll give it a go in the next day or so.
Well it worked for all the topics and posts, but none of the members were converted.
As in the smf_members table is empty? I should be able to correct that I guess, the topics and posts are the hardest bit :P Did you get any errors?
No errors...
And yes the members table is empty except for the admin account created during the initial install