Simple Machines Community Forum

SMF Support => Converting to SMF => Topic started by: Grudge on December 24, 2004, 05:37:28 AM

Title: Zorum Converter (beta)
Post by: Grudge on December 24, 2004, 05:37:28 AM
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
Title: Re: Zorum Converter (beta)
Post by: Grudge on January 14, 2005, 04:50:50 PM
This got downloaded, did anyone actually test to see if it worked?!
Title: Re: Zorum Converter (beta)
Post by: [Unknown] on January 17, 2005, 12:05:08 PM
You probably want...

SELECT /*!41000 OLD_PASSWORD('$_REQUEST[passwrd]'), */PASSWORD('$_REQUEST[passwrd]')

-[Unknown]
Title: Re: Zorum Converter (beta)
Post by: Onsite on January 27, 2005, 09:12:40 PM
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.
Title: Re: Zorum Converter (beta)
Post by: Onsite on January 29, 2005, 05:58:00 PM
Well it worked for all the topics and posts, but none of the members were converted.
Title: Re: Zorum Converter (beta)
Post by: Grudge on January 29, 2005, 06:24:55 PM
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?
Title: Re: Zorum Converter (beta)
Post by: Onsite on January 29, 2005, 06:48:34 PM
No errors...
And yes the members table is empty except for the admin account created during the initial install