SMF to XenForo Import


Active member
Some posts (and I guess conversations) contain hotlinked images, some of them are showing fine and others don't because the img bb code specifies the image's width and height.
I don't really know if this is because of SMF or a mod that I have installed.

Is there any way to run a SQL query to get rid of the whole width and height part?
Have in mind that the numbers (720 and 431) change depending on the size of the original image, and that it might have more or less digits, so I guess that some kind of wildcard should be used.

[img width=720 height=431]http://ilinktoimage.jpg[/img]

How it should look like

Jake Bunce

XenForo moderator
Staff member
With that addon, use the following settings:

Quick Find: [img width

Regular Expression: #\[img width=[0-9]+ height=[0-9]+\]([^\[]+)\[/img\]#siU

Replacement String: [img]\1[/img]

That should do it.


Active member
Ah these will come in handy, thanks! One other I noticed when I did my test migration was [iurl] since that won't be understood.

That search/replace will be very helpful.