Re: Convert SMF to ElkArte
Reply #61 –
TE, a question about your importer: while giving some support for conversions from IPB to SMF I noticed that frequently (more or less) some installations of IPB have some columns and other installs don't have them (usually is related to aim, icq, and alike), is there already a way to avoid the "missing column" errors thrown by mysql every time a converter is run and one of those columns doesn't exist?
Re: Convert SMF to ElkArte
Reply #62 –
Nope, would for sure be a cool feature but it's currently not implemented. I have an idea how it could be integrated though, but that's a lot of work and the xml files would need to be completely reorganized.
Re: Convert SMF to ElkArte
Reply #63 –
I didn't check the code, but guessing it works more or less similarly to the SMF converter, I wonder if a SHOW COLUMNS to get the columns and maybe an array_intersect or something to get only the fields that have a valid column would work?
Re: Convert SMF to ElkArte
Reply #65 –
instant_message has been renamed to unread_messages
and
pm_receive_from to receive_from
Re: Convert SMF to ElkArte
Reply #66 –
thanks! but what should I do now in the importer? when I renamed them it still throwing error.
Re: Convert SMF to ElkArte
Reply #67 –
ehm...okay I'll wait for TE (can't test it right now, sorry)
Re: Convert SMF to ElkArte
Reply #69 –
I'll check the db changes later, will keep you updated..
Re: Convert SMF to ElkArte
Reply #72 –
Thanks TE and emanuele, I have redownloaded then upload smf2_importer.xml and restarting the process but it failed me in receive_from field. screenshot attached.
Re: Convert SMF to ElkArte
Reply #73 –
fixed in the new version.
Re: Convert SMF to ElkArte
Reply #74 –
Thanks TE! Now the error only in recalculating statistic phase.