[BETA] SMF 1.1 to phpBB3 Convertor

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Get Involved
Locked
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

[BETA] SMF 1.1 to phpBB3 Convertor

Post by A_Jelly_Doughnut »

Hi Everyone,

I'm pleased to release this beta of the convertor from SMF 1.1 to phpBB3. It should convert almost everything from your SMF forum to your new phpBB forum.

The download should be unzipped into the phpBB root directory, so the auth_smf.php file will end up in the /includes/auth directory (this must be done to allow you to log in following the conversion).

Download - No longer available.
See for the latest version

For my sanity, I ask that you post all problems with this convertor in this topic. Thank you.

Updated to beta two on Nov. 8, 07
- to beta three on Dec 3, 07
- to beta four on Jan 16, 08
- to beta five on May 22, 08
- to beta five-c on March 24, 09
Last edited by D¡cky on Wed Dec 29, 2010 5:19 am, edited 7 times in total.
Reason: Add new download link
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
rhuk
Registered User
Posts: 7
Joined: Mon Jul 09, 2007 3:48 pm

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by rhuk »

Well done Jelly! Just want to thank Dicky, Nils, and Jelly for making this happen. It's been a real pleasure testing/debugging this with you guys.
http://www.rocketwerx.com - Pro Joomla! Components
http://www.rockettheme.com - Pro Joomla! Templates
User avatar
xyzulu
Registered User
Posts: 25
Joined: Tue Jul 10, 2007 9:57 pm
Location: Sydney - Australia

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by xyzulu »

Great work everyone!
Brad Baker
http://www.joomla.org - Core Team Member, Forum Admin http://forum.joomla.org
www.rochen.com - Managed Dedicated and Reseller Hosting Solutions.
http://www.joomlatutorials.com & .au - Learn Joomla! the easy way.
gsbe
Registered User
Posts: 4
Joined: Thu Oct 02, 2003 10:56 pm
Location: Lexington, VA
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by gsbe »

I'll be experimenting with this shortly. Are there any forseeable problems with using this converter for SMF 1.0.12 or even 1.1.4? Thanks for your work here!
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by A_Jelly_Doughnut »

Andy and Brad: Thanks :)

gsbe: It should work with 1.1.4, no guarantees with 1.0.12. My suspicion, without trying anything, is that it works for both.
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by D¡cky »

gsbe wrote:I'll be experimenting with this shortly. Are there any forseeable problems with using this converter for SMF 1.0.12 or even 1.1.4? Thanks for your work here!
I was not aware that there was a version 1.0.12, but I can safely say that this convertor will NOT work with SMF versions 1.0.x. The databases are different. You should upgrade your SMF to the latest version before converting or you could use the SMF 1.0.x to phpBB2 convertor, then convert to phpBB3.
Have you hugged someone today?
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by A_Jelly_Doughnut »

D¡cky wrote:but I can safely say that this convertor will NOT work with SMF versions 1.0.x.
Good to know, thanks :geek:
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
vtx666
Registered User
Posts: 9
Joined: Wed Oct 03, 2007 2:39 pm

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by vtx666 »

Thanks for this converter!

While converting (after step 1 of 17), i get:

[phpBB Debug] PHP Notice: in file /install/convertors/functions_smf11.php on line 1226: strpos() [function.strpos]: Empty delimiter.
[phpBB Debug] PHP Notice: in file /install/index.php on line 437: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
[phpBB Debug] PHP Notice: in file /install/index.php on line 438: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
[phpBB Debug] PHP Notice: in file /install/index.php on line 439: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
[phpBB Debug] PHP Notice: in file /install/index.php on line 440: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by A_Jelly_Doughnut »

the PHP Manual wrote: int strpos ( string $haystack, mixed $needle [, int $offset] )
AJD's Mind wrote: int strpos ( string $needle, mixed $haystack )
The fix for this: Find in /install/convertors/functions_smf11.php

Code: Select all

// takes SMF rank image, and removes everything before and including the sharp.
function smf_rank_image($rank_image)
{
	return substr($rank_image, (strpos('#', $rank_image) + 1));
}
Replace with

Code: Select all

// takes SMF rank image, and removes everything before and including the sharp.
function smf_rank_image($rank_image)
{
	return substr($rank_image, (strpos($rank_image, '#') + 1));
}
Sorry for the dumb mistake. I'll update the package probably tomorrow or Friday. I'm hoping to get another bug report or two :)
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
vtx666
Registered User
Posts: 9
Joined: Wed Oct 03, 2007 2:39 pm

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by vtx666 »

Ok, that fixed the problem. The converter is now continuing.

Will report back when ready
vtx666
Registered User
Posts: 9
Joined: Wed Oct 03, 2007 2:39 pm

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by vtx666 »

The conversion of topics is very slow, its running for about half an hour now and there are 323 of the 5.093 topics converted. No problem, I'll just leave it running and report back when it's fully ready. I hope post conversion is a bit faster as there are over 300.000 in smf.
oojacoboo
Registered User
Posts: 12
Joined: Wed Nov 07, 2007 11:19 pm

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by oojacoboo »

F!ck, I had a nice long response prepared and of course the session expires!

Basically, what I was saying is this thing is buggy as all get out... Firstly, it didn't import my personal username along with a couple others, which is quite strange. I couldn't pinpoint the exact issue for it, but I believe it to be strange characters in the signature. However, it could have been that my username has an ID of "1" in SMF and phpBB assigns the ID "1" to Anonymous. However, that wouldn't explain the other accounts that didn't get imported as well for no apparent reason.

Also, I can't seem to figure out how the admin account gets transferred over. And, none of the users get "activated". Additionally, none of the admins or mods maintain their status. I can't even login to the admin section of the site at the moment, b/c I can't login with the admin user. I tried used the toolkit to change the settings for the user and can't do so. For some reason the toolkit won't write to the db despite the db user having appropriate permissions to do so.

I know all of this isn't much help in diagnosing the issues. However, if you can direct me some questions I can surely answer them to help get these sorted. Thanks...

**Command + A... Command + C... Command + C... Command + C **
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by A_Jelly_Doughnut »

I certainly wouldn't have released a version to the public if I was experiencing any of those problems.

All user accounts should be converted. User #1 becomes #2, 2 becomes 3, and so forth. All permissions should be transfered.

So, it would be helpful to know:
1) What version of SMF you are running (exactly, please)
2) What "toolkit" are you talking about?
3) Whether or not you get any errors during the conversion

Thanks :)
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
oojacoboo
Registered User
Posts: 12
Joined: Wed Nov 07, 2007 11:19 pm

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by oojacoboo »

I hear ya, I figured its just something unique to my situation... So, to address the questions.

1. The very latest, 3.0 RC7
2. http://www.phpbb.com/community/viewtopic.php?t=232010 - not that this really matters at all, its just a toolkit.
3. No errors that I could tell. Everything appeared to go smoothly.

To clear up some things I reported. I changed the ID on my personal username on the forum to #3, still no import.
I still cannot login with the admin username for the life of me. It is suppose to be user_type = 1, correct? All my imported accounts are user_type = 0. user_permissions are all [BLOB - 0 B]. As for the accounts that aren't importing, I don't have the slightest why some aren't importing and most are...
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Post by A_Jelly_Doughnut »

A_Jelly_Doughnut wrote:1) What version of SMF you are running (exactly, please)
You gave me the phpBB version, I need to know the SMF version.
2. viewtopic.php?t=232010 - not that this really matters at all, its just a toolkit.
That script is for phpBB2, so that explains why it didn't get you any results on phpBB3.
To clear up some things I reported. I changed the ID on my personal username on the forum to #3, still no import.
I still cannot login with the admin username for the life of me. It is suppose to be user_type = 1, correct? All my imported accounts are user_type = 0. user_permissions are all [BLOB - 0 B]. As for the accounts that aren't importing, I don't have the slightest why some aren't importing and most are...
user_permissions will be filled upon the user logging in for the first time. This is intended :)

user_type = 0 is for everybody but administrators. For an admin, user_type should be 3.

Do you have any additional administrators on the SMF board to check if they were converted or not?
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
Locked

Return to “[3.0.x] Convertors”