News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem when convert from Invision

Started by Rövarn, October 21, 2006, 08:57:50 AM

Previous topic - Next topic

Rövarn

#20
Quote from: Oldiesmann on October 25, 2006, 05:09:43 PM
so I'm not sure which one works and which one doesn't anymore.
I am not sure neither, it's a lot of converters here now... ;)

The only thing I can see as a problem right now is the thumbnails of the attached pictures.
If I can have this one to work with the thumbnails I'll think I can find out the other problems myself.

http://www.animeneko.net/~motokochan/smf/invision2.1.3_to_smf.zip

Everything else seems to work(i.e. passwords, quotes), or I can figure out self what to do and some things I can manually change in the admin panel, (i.e. ranks).

Thank you



Oldiesmann

I'll look at it soon. I'm pretty busy this weekend so it may be Monday before I have time to look at it.
Michael Eshom
Christian Metal Fans

Mickerovare

#22
I was looking in the convert.php file and found this code:
function getAttachmentFilename($filename, $attachment_id)
{
// Remove special accented characters - ie. sí (because they won't write to the filesystem well.)
$clean_name = strtr($filename, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));

// Get rid of dots, spaces, and other weird characters.
$clean_name = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $clean_name);

return $attachment_id . '_' . strtr($clean_name, '.', '_') . md5($clean_name);
}


Can this have anything to do with the fact that converter doesn't copy the attached thumbnails? The thumbnail name in IPB dir. Contains the "_". The filename of a thumbnail in IPB is ie.: post-99-1161442060_thumb.jpg and original picture, witch is copied correctly is: post-99-1161442060.jpg

I am not very familiar either with php coding or English language and don't have the knowledge to make this on my one.
The thumbnail thing is the only part who stops me from completing the migration now!  :'(
I managed to make a working converter for the blog by my self :D
It would be great to have a converter who did the thumbnails too. :)

Thank you

Oldiesmann

SMF just doesn't convert thumbnails at the moment. That section of code is used to create an encrypted name for the attachment. Most of that code just deals with stripping out certain characters that would cause problems when trying to save the file (spaces, punctuation marks, foreign characters, etc.). It also strips out underscores (because the "_" is used in place of the final ".").

If I get a chance later today I'll take a look at this and see what needs to be done to convert thumbnails. Right now we're mainly interested in working out all the bugs that keep popping up in the converters.
Michael Eshom
Christian Metal Fans

JeffersonRyan

#24
Quote from: Rövarn on October 21, 2006, 08:57:50 AM
I am running Invision's board 2.1.7 now and have plans of a migration to SMF 1.1RC3. That converter didn't work for me, but I figured out that the converter to SMF 1.0.8 worked fine! So now I have SMF 1.0.8 installed and most of the things work, even users passwords! But the quotes from IPB don't get right!
In IPB-board when I click on the editbuttom it looks like this:


[quote name='' date='Feb 17 2006, 10:22 PM' post='368' date='Feb 17 2006, 10:22 PM']
Kan vem som helst anmäla sig här? jag har ingen båt
[/quote]

Visst kan du det, vem som helst kan registrera sig!
Du är välkommen in, och hoppas Du ska trivas!
:D[/color][/sub]
The post looks ok in the forum

And a quoted post in the database looks like this:
<!--quoteo(post=106:date=Feb 6 2006, 12:17 AM:name=Skotten)--><div class='quotetop'>(Skotten @ Feb 6 2006, 12:17 AM) [snapback]106[/snapback]</div><div class='quotemain'><!--quotec--><br />Fan i helllvete  vad snö det kommer  <br />Jag har inte skottat bort min snö  det ligger 30 cm på uppfarten just nu <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><!--QuoteEnd--></div><!--QuoteEEnd-->


I have a similar problem. (sorry for the mess above)

I converted from IPB 1.3 to SMF 1.1.1 and in all quotes appears just "QUOTE" without the author name, although in the converted SMF database the authorname appears like this:

[QUOTE=wiliamroses,Jan 1 2007, 04:17 AM]

Can this be fixed?

Advertisement: