ElkArte Community

General => OpenImporter => Topic started by: Jorin on January 30, 2014, 03:18:59 am

Title: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 30, 2014, 03:18:59 am
As TE mentioned (http://www.elkarte.net/community/index.php?topic=844.msg6695#msg6695) we - which means me and my team - plan to migrate our beloved forum for hybrid and electric cars (http://forum.hybrid-piloten.de) to ElkArte. But this needs time, we have to evaluate how ElkArte works for us and fits our needs.

Is there a chance right now to import a SMF 2.0.7 with not so many modifications into ElkArte Beta2 or is it too early for that?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on January 30, 2014, 04:46:20 am
yep, there is ..
https://github.com/OpenImporter/openimporter
you'd need the files Import.php, Import_en.xml and smf2_importer.xml.
Upload these files to your ElkArte Installation, then point to Import.php with your browser and follow the instructions.
Can guide you in german, if needed..
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 30, 2014, 04:54:23 am
Quote from: TE – Can guide you in german, if needed..

I know.  :D  Thanks, will give it a try, maybe saturday. Girlfriend's not at home then.  ;D
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: NetFlag on January 30, 2014, 05:29:40 am
Quote from: Jorin – ... will give it a try, maybe saturday. Girlfriend's not at home then.  ;D

 :D here, there and everywhere the same. For migration, good luck .  :)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on January 30, 2014, 06:35:08 am
In theory (but it has not been tested extensively) it should be possible to "upgrade" from any version of YaBB/SMF to Elk (1.0) directly with the upgrade.php script, though it has not been tested that much...
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 30, 2014, 08:05:52 am
Uh, error message while answering:

QuoteThe message has the following error or errors that must be corrected before continuing:The message body was left empty

No, it isn't!  :o

Wow, after clicking the smiley above the error message is gone?!?

Anyway... Do you want me to try the upgrade first oder should I use the import files?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on January 30, 2014, 08:13:18 am
mmm...interesting...
Were you answering from the quick reply or from the "post page"?

I'd trust TE and import, at least that way the original database is not touched and you can try again. :D
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 30, 2014, 08:18:20 am
Quote from: emanuele – Were you answering from the quick reply or from the "post page"?

From the normal "post reply" page. I've seen this error for the first time here. No problems like that till today. Just now it works fine too, without errors.

Quote from: emanuele – I'd trust TE and import, at least that way the original database is not touched and you can try again. :D

As you wish. I will use a backup file for the import so I can test it more than once.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on January 31, 2014, 12:53:11 am
@Jorin Yep, the benefit of the importer: It won't touch your SMF Installation at all, so it's not overly important to make a backup before. Just be sure to fill in the proper pathes for SMF & Elk !
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 31, 2014, 02:37:47 am
There it is again (see attachment). OS is Windows 7 Enterprise 64bit, browser is IE 9.0.8112.16421 64bit.

@TE: Interesting. I want to use a clean database for ElkArte. So do I have to import my SMF database backup into this empty database first and then start the import script of ElkArte or will the script ask for location and access to my SMF database? I presume the latter?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Nao on January 31, 2014, 04:01:01 am
There's also the fact that this message shows up if you do things via the keyboard, i.e. click the title, modify it, then Tab out of it, and there you go, you get the error because you focused out of the form with an empty body.

While I'm at it... Is Elk Beta 2 feature frozen? How would you guys compare it to SMF 2.0's alpha/beta/RC release cycle? Is it usable on a production site? (I'm not asking because I plan to install it anywhere, but because I don't think you've addressed that on the website.)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on January 31, 2014, 04:22:39 am
Quote from: Jorin – There it is again (see attachment). OS is Windows 7 @TE: Interesting. I want to use a clean database for ElkArte. So do I have to import my SMF database backup into this empty database first and then start the import script of ElkArte or will the script ask for location and access to my SMF database? I presume the latter?
Yup, that was recently changed from "on click" to "on lost focus".
The main problem of the message is that is moves around the posting area, so there are two possibilities:
1) attach it to the post button,
2) make the error box not to move around things.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: inter on January 31, 2014, 04:26:30 am
SMF 2.0.xx -> Elkarte -> SMF 2.0.xx

the reverse converter is?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Nao on January 31, 2014, 04:30:18 am
Hmm I wonder what happens if someone posts on the source forum when the import process is being run...
;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on January 31, 2014, 04:48:53 am
Quote from: Inter – SMF 2.0.xx -> Elkarte -> SMF 2.0.xx

the reverse converter is?
I don't think there is any at the moment.
I'm not against coding it, but considering I'm writing Elk the level of priority for that is quite low. If you want to try it, OpenImporter's code is at github (https://github.com/OpenImporter/openimporter). ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on January 31, 2014, 05:02:13 am
@Jorin the Importer needs a fully working SMF (including the Settings.php and several folders for importing Smileys, attachments and such stuff).
Either you create a full backup (files and database) and use repair_settings.php to fix the pathes or you just point the Importer to the "Live" Forum and let it grab the Content. You can install Elk in another database, but the MySQL User / Password must be the same for both databases.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 31, 2014, 05:10:03 am
Thanks a lot. I prefer variation one.

Do you want me to write down my thoughts about the migration, how it works and how the result looks like? Or is it not necessary 'cause you did this often enough by yourself?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on January 31, 2014, 05:16:48 am
yep, feel free to write down your thoughts.. I'm sure I'll get some inspiration for improvements or you'll find bug(s) in the importer files.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on January 31, 2014, 05:18:33 am
Btw, where did you get your avatar from? Looks nice.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on January 31, 2014, 06:27:00 am
Quote from: Jorin – Btw, where did you get your avatar from? Looks nice.
http://www.faceyourmanga.com
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: inter on January 31, 2014, 07:18:04 am
thanks
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Nao on January 31, 2014, 05:29:50 pm
I think that if SMF wants to get Elkarte dropouts, they can write their own import script for it... ;)

However, I think OpenImporter should (1) add Elk and Wedge as a source[1], for instance if you want to import between these or even between identical forums, (2) fix Wedge support :P (I don't think there are any things that I fixed in the Wedge/importer repo that can't be backported into OpenImporter.)
Edit: just noticed that Wedge is supported as source, so... Add Elk!
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 01, 2014, 08:23:25 am
Help me out please. I only find 1.0 Beta 1, but where can I (if I can) download Beta 2?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 01, 2014, 11:08:49 am
Release is in work, meanwhile you can take the master branch zip (will probably be the same)
https://github.com/elkarte/Elkarte/archive/master.zip
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 04, 2014, 02:20:10 am
No luck with installing ElkArte Beta1:

Quotemagic_quotes_gpc=on was detected: your host is using an unsecure PHP configuration, deprecated and removed in current versions. Please upgrade PHP.

I tried it with the following .htaccess file:

Code: [Select]
magic_quotes_gpc=off

...but this leads to an internal server error. My PHP server version is 5.3.18. Any chance to get ElkArte to work?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 03:11:35 am
 http://www.elkarte.net/community/index.php?topic=725.msg5090#msg5090 ;)

Code: [Select]
php_flag magic_quotes_gpc off
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 04, 2014, 03:31:25 am
Aaaaah!  :o  :-[ 
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 08:18:35 am
Quote from: Inter – SMF 2.0.xx -> Elkarte -> SMF 2.0.xx

the reverse converter is?
Not that I know of... maybe the SMF Folks is working on one, but that's  definitely not my business ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 04, 2014, 12:16:09 pm
Quote from: TE – yep, there is ..
https://github.com/OpenImporter/openimporter
you'd need the files Import.php, Import_en.xml and smf2_importer.xml.
Upload these files to your ElkArte Installation, then point to Import.php with your browser and follow the instructions.

Done, and it leads me to the GitHub page with import.php opened in an editor. What do I have to do now?  :o
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 12:18:44 pm
There's a "download zip" button on the right sidebar .. download that file, extract the ZIP and copy import.php, import_en.xml and smf2_import.xml to the main ElkArte folder.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 04, 2014, 12:27:26 pm
No, there isn't. See screenshot.

I have the three import files already, they are in my ElkArte folder on my webspace. But when I open myurl.de/import.php it leads to GitHub.
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 12:39:35 pm
just one step up, you're already watching a file inside the structure:
https://github.com/OpenImporter/openimporter
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 04, 2014, 12:55:28 pm
Ah, great! Thanks! Works now!

But guys, you have to work on this stuff. Maybe it's not a bad idea to write done some instructions for people like me who don't know anything about OpenImporter or GitHub.  ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 12:59:03 pm
Quote from: Jorin – Ah, great! Thanks! Works now!
But guys, you have to work on this stuff. Maybe it's not a bad idea to write done some instructions for people like me who don't know anything about OpenImporter or GitHub.  ;)
Yes, definitely.. I'll focus a bit more on the Importer and the related Docs once ElkArte B2 is out..
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Jorin on February 04, 2014, 01:00:08 pm
By the way: import is finished without errors!  :)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 01:53:29 pm
Quote from: Jorin – By the way: import is finished without errors!  :)
woooot ! Happy testing ..
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on February 04, 2014, 02:28:58 pm
One of the things I proposed somewhere[1] is, starting from 1.1, to "integrate" OpenImporter directly into the install, so that the installer will propose something like "do you want to import from an existing forum?" Yes/No etc.
I'm loosing track of where I propose and where I do (not do) things lol
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: TE on February 04, 2014, 02:52:05 pm
Quote from: emanuele – One of the things I proposed somewhere[1] is, starting from 1.1, to "integrate" OpenImporter directly into the install, so that the installer will propose something like "do you want to import from an existing forum?" Yes/No etc.
yep, a unified install / import / upgrade script.. that would be wonderful :)
I'm loosing track of where I propose and where I do (not do) things lol
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Enrico on October 09, 2015, 01:35:55 pm
I tried to do the best that I can by myself, in order not to trouble you all too much, but now I am completely lost. :)

I am trying to convert SMF 2.0.10 to Elkarte 1.0.5: I donwloaded the zip file of OpenImporter and then I extracted the files: Import.php, Import_en.xml and smf2_importer.xml.

Then I uploaded these files into Elkarte, but I think in the wrong way. As you can see from the screenshot these files are now on Elkarte, but when I click on import.php i receive a message of error.

I really would like to switch to Elkarte but unfortunately I am not an IT technician. :(
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on October 10, 2015, 12:31:03 pm
Waaaait!
1st from where did you download the importer?
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Enrico on October 10, 2015, 12:54:05 pm
Oooooppsss,   :-*

I downlodaded the zip file from here: http://openimporter.github.io/openimporter/

....after your question I have the feeling I was wrong. :(

 ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: radu81 on October 10, 2015, 01:27:48 pm
Try this one
http://www.elkarte.net/community/index.php?topic=2118.0
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on October 10, 2015, 06:09:24 pm
For SMF both should work (sorry, but I had some problems in this period and the importer is the second priority right now...).
Anyway, in both cases, you don't have to "pick" files, just unzip and upload everything you get. ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Enrico on October 11, 2015, 03:20:38 am
Thanks to your help I did a step ahead. :) 

Now I see the OpenImporter page.

I have a fresh installation of Elkarte 1.0.5.

I know that my questions could appear stupid to your eyes, but I wanted to improve my knowledge in Forums starting from 0, so please be patient. ;D

I did a backup of .sql file of my forum, and the question is: in which folder of elkarte I have to put this file? I do the transfer through FTP.

I think then I will have to put the address to "path so SMF 2", am I correct?



Title: Re: Importer for SMF and ElkArte Beta2?
Post by: radu81 on October 11, 2015, 01:38:48 pm
You don't have to use the backup file, the backup is recommended only for security reasons. As far as I know the importer does not write or change anything into your smf install

In path to destination you have to enter the path of your elkarte forum. The password requested if for your smf database

Don't know if it's the best solution but I usually have this structure
ex:
path to elkarte: membri/aee/elkarte
path to smf membri/aee/smf
path to openimporter: membri/aee/importer
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Enrico on October 12, 2015, 02:54:15 am
Grazie 1000! This morning I am at work, but this evening I will try for sure!

 ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Enrico on October 17, 2015, 04:54:59 am
And today I am really proud saying that even my micro forum switched to ElkArte!

Thanks to All for your support, for welcome me in this forum, for replying to my question.

In particular I wish to thank Radu81: without his help I would never be able to make it possible. ;)

ElkArte is clean, powerful (even too much for my needs, but of course it is not a fault! :D ).

....and I can't believe it's for free! Really thanks to all the people involved in this project to give us this beautiful software.

Enrico



Title: Re: Importer for SMF and ElkArte Beta2?
Post by: Wizard on October 17, 2015, 11:48:11 am
Congrats @Enrico :thumbsup:
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: radu81 on October 17, 2015, 05:13:08 pm
Welcome to elkarte world, I'm glad I could help. If you have any doubts ask here or on the italian board ;)
Title: Re: Importer for SMF and ElkArte Beta2?
Post by: emanuele on October 18, 2015, 08:50:08 am
Great! :D