2012-01-29, 09:47 PM
Hi there. We converted a large forum to MyBB, but, for some reason all of our codes such as [url= got changed to <a href= etc. We don't know how to fix this, and it's time consuming to edit tens of thousands of posts.
I know this can easily be fixed via SQL, but, can someone help me write SQL queries to run?
I think it'd be something similar to:
But I'm so clueless and probably murdered that line. :(
We're having problems with the following:
I know this can easily be fixed via SQL, but, can someone help me write SQL queries to run?
I think it'd be something similar to:
UPDATE `mybb_posts` SET `message` = REPLACE(message, '<a href="%">', '[url=%]'
WHERE `mybb_posts` LIKE '<a href="%">'
But I'm so clueless and probably murdered that line. :(
We're having problems with the following:
- <div align="center">
- <div align="right">
- <a href=""></a>
- [color=#HEX ] <- For some reason we got spaces! o.o
- [list type="decimal"]