iBaker
09-05-2012, 04:57 AM
I am trying to do an import from XF to vb4.2 and after using Impex with the XF addon from here at vb.org and there is some cleaning up to do. One specific need is to address videos that are inline in a post. I need to do a string search and replace in the db and not sure what the sql would be.
The string in posts that needs to be changed is:
media=youtube]rGALfBuKbWc[/media
It needs to be changed to:
video=youtube;rGALfBuKbWc]http://www.youtube.com/watch?v=rGALfBuKbWc[/video
The problem is that the string rGALfBuKbWc is a variable that is different in each post (it is the YouTube videoID)
Any ideas what the SQL would be that I could run in the database that would replace the string using the variable and thus display the video in the post?
The string in posts that needs to be changed is:
media=youtube]rGALfBuKbWc[/media
It needs to be changed to:
video=youtube;rGALfBuKbWc]http://www.youtube.com/watch?v=rGALfBuKbWc[/video
The problem is that the string rGALfBuKbWc is a variable that is different in each post (it is the YouTube videoID)
Any ideas what the SQL would be that I could run in the database that would replace the string using the variable and thus display the video in the post?