Advertisement:

Author Topic: Converting YaBB 1.3.2 to SMF  (Read 10537 times)

Offline ChestateeWx

  • Newbie
  • *
  • Posts: 5
Converting YaBB 1.3.2 to SMF
« on: January 29, 2005, 10:06:45 PM »
Everything seemed to go well with the conversion except the date of the posts. They were all marked as being posted Today @ the same time.

Suggestions?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Converting YaBB 1.3.2 to SMF
« Reply #1 on: January 29, 2005, 11:42:28 PM »
What sort of time format are the posts using?  Would you be against sending me one of the data files?

It parses dates like "mm/dd/yy at hh:mm:ss" and "hh:mm:ss on mm/dd/yy"... or should.

-[Unknown]

Offline ChestateeWx

  • Newbie
  • *
  • Posts: 5
Re: Converting YaBB 1.3.2 to SMF
« Reply #2 on: January 30, 2005, 02:06:19 PM »
The format is mm/dd/yyyy hh/mm

Jan 29th, 2005, 9:53pm
&
Today at 9:49am

Heck no I don't mind sending you some data files. Whatchya need?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Converting YaBB 1.3.2 to SMF
« Reply #3 on: January 30, 2005, 08:02:44 PM »
Any file with a date in it would work.  A member data file, a message.. they both should have dates in them.  Even "instant messages" should.

The strtotime function (which is used to handle unknown dates) seems to handle mm/dd/yyyy hh:mm just fine:
D:\Documents and Settings\Unknown>php -r "echo strtotime('01/01/2005 01:01');"
1104570060
D:\Documents and Settings\Unknown>php -r "echo strtotime('01/01/2005 01:01:01');"
1104570061


-[Unknown]

Offline ChestateeWx

  • Newbie
  • *
  • Posts: 5
Re: Converting YaBB 1.3.2 to SMF
« Reply #4 on: January 31, 2005, 08:07:38 PM »
Just started from scratch and tried it again. Worked fine. Only things we have noticed so far are... the attachments didn't make it and everyones outbox had been cleared.

I uploaded all the attachments to the "Attachment" dir. But I still do not see the attachments nor the reference to them.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Converting YaBB 1.3.2 to SMF
« Reply #5 on: February 01, 2005, 02:38:24 AM »
I'm afraid the converter does not, currently, do attachments.  This is one of the things I plan to add later.

-[Unknown]

Offline bogo

  • Newbie
  • *
  • Posts: 1
Re: Converting YaBB 1.3.2 to SMF
« Reply #6 on: February 05, 2005, 09:46:22 AM »
We use the YaBB in Romanian language.
In the YaBB language file there is a line which translate 'at' string in our language.
$txt{'107'} = "la";

In Romanian "la" = "at" so all the messages contains date in this format "date=mm/dd/yy la hh:mm:ss".

All we have to do to import correct dates in SMF is to make a little change in the import script (yabb_to_smf.php).
At the line number 2173 (CTRL-G in Notepad) we have this code which replace the 'at' translated in French and Deutsch:
$field = trim(str_replace(array(' um ', ' de ', ' en '), ' at ', $field));

We must add in the array the translation of 'at' in our language.
For us this mean that we changed the code as follows:
$field = trim(str_replace(array(' um ', ' de ', ' en ', ' la '), ' at ', $field));

I just tested this and works great!!

Offline ChestateeWx

  • Newbie
  • *
  • Posts: 5
Re: Converting YaBB 1.3.2 to SMF
« Reply #7 on: February 05, 2005, 11:04:37 AM »
I'm afraid the converter does not, currently, do attachments.  This is one of the things I plan to add later.

-[Unknown]
I'm just glad that I was able to convert what we had  ;D
I suppose that I could leave the old board intact, then at a later time (when you have a converter that will do attachments) port all the attachments over.

Or, will that wipe every thing clean from the date that we start using the SMF format... hummmm??

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Converting YaBB 1.3.2 to SMF
« Reply #8 on: February 05, 2005, 05:14:42 PM »
I'm afraid that the converter, as current, would do just that.  However, it may be possible to write a converter for just the attachments.

-[Unknown]

Offline ChestateeWx

  • Newbie
  • *
  • Posts: 5
Re: Converting YaBB 1.3.2 to SMF
« Reply #9 on: February 05, 2005, 06:11:06 PM »
I'm afraid that the converter, as current, would do just that.  However, it may be possible to write a converter for just the attachments.

-[Unknown]
If you can make one just for attachments, I am sure you will get a raise in pay  ;)