SMF to PHPBB

This is an archive of the phpBB 2.0.x convertors forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
spechackers
I've Been Banned!
Posts: 13
Joined: Sun Nov 02, 2003 5:31 pm
Location: India

SMF to PHPBB

Post by spechackers »

i need an convertor , for changing from SMF TO PHPBB>


Help appreciated.
Proud To Be An Indian!
GoE-LCP
Registered User
Posts: 4
Joined: Mon Sep 06, 2004 3:53 pm

Re: SMF to PHPBB

Post by GoE-LCP »

spechackers wrote: i need an convertor , for changing from SMF TO PHPBB>


Help appreciated.
same thing here m8
Ali|FIN
Registered User
Posts: 45
Joined: Wed Sep 15, 2004 12:12 am

Post by Ali|FIN »

Hello,

This issue has been brought up many times before in past topics such as this, this, this, this, and this one. I've also heard that the SMF forum software is very similar to YaBB's foruming software thus you may want to try the YaBB Convertor(s) that've been developed in the past.

However, if after this you fail I am sure someone would be willing to develop a SMF vx.x to phpBB convertor for you and all the others whom which are in need of one. Heck, if someone is willing to assit me with the development of it I'll do it myself with all the spare time I have. Anyways, good luck and if you need further assistance please let us know.
SlapShot434
Registered User
Posts: 364
Joined: Wed May 12, 2004 2:43 am

Post by SlapShot434 »

I actually spent all day today attempting to modify the yabbse convertor to work with the extremely similar SMF database, but have run into several problems.

For one, the password.

SMF uses MD5-Hashing for their passwords, but they salt it. I have yet to figure out what they salt it with, and until I do, I will not be able to figure out the password change.


Also, SMF stores permissions in several different files, making it almost impossible to correctly assign AUTH's in phpbb.


If anyone is willing to look these two things up, it would certainly speed up the process of making this thing work.
PLEASE NOTE: I have left the coding community and no longer provide support for any coding I may have contributed to in the past. I apologize for the inconvenience and fully welcome anyone perfecting my code for the betterment of this community.
Graham
Former Team Member
Posts: 8462
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK
Contact:

Post by Graham »

If necessary, you can go for the approach I've had to adopt on a few in the past - set the password to a random value and get the users to request a new one (assumes they have correct email addresses set :) ) and on the permission set them to a default set and get the user to change them.

I haven't got time to code anything myself, but if anyone does want me to look at code they've written for this convertor, my email address is in all the UBB convertors available in this forum.
"So Long, and Thanks for All the Fish"

phpBB Useful Links: Knowledge Base | Userguide | Forum Search | MOD Database | Styles Database
My Links: Blog!
SlapShot434
Registered User
Posts: 364
Joined: Wed May 12, 2004 2:43 am

Post by SlapShot434 »

I went ahead and totally removed the whole password process, just for now.

Right now, I'm having problems getting the posts to transfer correctly, but i'm working on it.

When I get to a good stopping point, i will probably ask you to look at it.
PLEASE NOTE: I have left the coding community and no longer provide support for any coding I may have contributed to in the past. I apologize for the inconvenience and fully welcome anyone perfecting my code for the betterment of this community.
Draknek
Registered User
Posts: 367
Joined: Thu May 27, 2004 8:56 pm
Location: Coventry, England
Contact:

Post by Draknek »

I looked at the SMF passwords about a week ago, just to see how feasible a converter was.

This is the login code (Sources/LoginOut.php, line 175):

Code: Select all

	// Figure out the password, and load the settings.
	$user_settings = mysql_fetch_assoc($request);
	$md5_passwrd = md5_hmac($_REQUEST['passwrd'], strtolower($user_settings['memberName']));

	// Check if the account is activated
	if (empty($user_settings['is_activated']))
	{
		$context['login_error'] = $txt['activate_not_completed1'] . ' <a href="' . $scripturl . '?action=activate;sa=resend;u=' . $user_settings['ID_MEMBER'] . '">' . $txt['activate_not_completed2'] . '</a>';
		log_error($txt['activate_not_completed1'] . ' - ' . $user_settings['memberName'], false);
		return;
	}

	// Old style encryption... now's the only time to fix it.
	if ($user_settings['passwd'] == crypt($_REQUEST['passwrd'], substr($_REQUEST['passwrd'], 0, 2)) || $user_settings['passwd'] == md5($_REQUEST['passwrd']))
	{
		updateMemberData($user_settings['ID_MEMBER'], array('passwd' => '\'' . $md5_passwrd . '\''));
		$user_settings['passwd'] = $md5_passwrd;
	}
	// What about if the user has come from vBulletin or Invision?  Let's welcome them with open arms \o/.
	elseif ($user_settings['passwordSalt'] != '' && ($user_settings['passwd'] == md5(md5($_REQUEST['passwrd']) . $user_settings['passwordSalt']) || $user_settings['passwd'] == md5(md5($user_settings['passwordSalt']) . md5($_REQUEST['passwrd']))))
	{
		// Get our new encryption in!
		updateMemberData($user_settings['ID_MEMBER'], array('passwd' => '\'' . $md5_passwrd . '\'', 'passwordSalt' => '\'\''));
		$user_settings['passwd'] = $md5_passwrd;
	}
	// Bad password!  Thought you could fool the database?!
	elseif ($user_settings['passwd'] != $md5_passwrd)
	{
...
The relevant information is this function in Sources/Load.php, line 268:

Code: Select all

// MD5 Encryption used for passwords.
function md5_hmac($data, $key)
{
	$key = str_pad(strlen($key) <= 64 ? $key : pack('H*', md5($key)), 64, chr(0x00));
	return md5(($key ^ str_repeat(chr(0x5c), 64)) . pack('H*', md5(($key ^ str_repeat(chr(0x36), 64)). $data)));
}
Interestingly, the passwordSalt field seems to be left blank. Instead, the salt is their username, lowercased.

I hope this helps.
spechackers
I've Been Banned!
Posts: 13
Joined: Sun Nov 02, 2003 5:31 pm
Location: India

We need this

Post by spechackers »

come on guys, do it soon.


some of us are in need.
Proud To Be An Indian!
SlapShot434
Registered User
Posts: 364
Joined: Wed May 12, 2004 2:43 am

Post by SlapShot434 »

be patient, it will be done when it is done
PLEASE NOTE: I have left the coding community and no longer provide support for any coding I may have contributed to in the past. I apologize for the inconvenience and fully welcome anyone perfecting my code for the betterment of this community.
liquid-motion
Registered User
Posts: 18
Joined: Sat Oct 09, 2004 12:53 am

Post by liquid-motion »

I'm really looking forward to the fact that there's really coming a convertor for SMF! I would love to convert to PHPBB... Any efforts made so far? Keep us posted please! Good luck. I wish I could it do it myself! Thanks in advance. You're the greatest! :)
SlapShot434
Registered User
Posts: 364
Joined: Wed May 12, 2004 2:43 am

Post by SlapShot434 »

I'm still working on it, having some trouble with the posts right now, but at least things are tranferring
PLEASE NOTE: I have left the coding community and no longer provide support for any coding I may have contributed to in the past. I apologize for the inconvenience and fully welcome anyone perfecting my code for the betterment of this community.
spechackers
I've Been Banned!
Posts: 13
Joined: Sun Nov 02, 2003 5:31 pm
Location: India

Great,

Post by spechackers »

Like to see the convertor soon, Good luck my friend in convertion.
Proud To Be An Indian!
NIS-Francisco
Registered User
Posts: 4
Joined: Sat Oct 02, 2004 7:11 pm

Post by NIS-Francisco »

Hmm,

I need the convertor too. Btw; When is 2.2 gonna be released?
Graham
Former Team Member
Posts: 8462
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK
Contact:

Post by Graham »

2.2 will be released when it is finished (it should be this year)
"So Long, and Thanks for All the Fish"

phpBB Useful Links: Knowledge Base | Userguide | Forum Search | MOD Database | Styles Database
My Links: Blog!
spechackers
I've Been Banned!
Posts: 13
Joined: Sun Nov 02, 2003 5:31 pm
Location: India

When

Post by spechackers »

When it will be finished, any dates .
Proud To Be An Indian!
Locked

Return to “[2.0.x] Convertors”