SMF Support > Converting to SMF

http://http// - Pictures broken after migrations (phpBB3 -> SMF 2.0.2)

<< < (2/2)

TechJeeper:
I just did some testing, It is only doing it for previously posted images.  I can literally take a post, modify it, copy the code into a new topic and the pictures work fine...  I am stumped.

TechJeeper:
And if I take and Modify a post with broken images, not touch a single thing in the topic then hit post, the images work... hmmmmm  Is there any way to "rebuild" my posts?

Chron-O-John:
Hi,

I've had the same error.

I found out that the conversion-tool did not save html-Entities in plain text but in the corresponding html-enitity (like &#43;).

I don't know how much you are into PHP and MySql. As a quick tryout I made a script correcting this for all fields an a Table which seems to work.

I'll upload a more user-friendly and save version of the script as soon as I have time to write it.

Chron-O-John:
Hi,
im done with my script.

Please keep in mind that you use it at your own risk!
Always make a backup.

This script converts all the Html-Entities for posts, pms and signatures stored in the Database to thier corresponding chars.

This is a rather quick-and-dirty approach, not much error checking is done. Oh and its only compatibe to MySql.

Just copy the attached script to the root folder of your SMF-installation and call it in your browser (e.g. hxxp:www.yourSmfForum.com/econvert.php [nonactive]). The script reads the settings from the Settings.php file.

If everything is completed it should state: "Everything done!"
Delete it afterwards.

Have fun!

Ps: @admins maybe i would make sense to move this somewhere where other users can find it too.

Edit: whoops I forgot the SQL-Update query - Should be fine now

Navigation

[0] Message Index

[*] Previous page

Go to full version