Log in

View Full Version : How do I remove a certain word from posts?


PageUp
07-01-2005, 10:01 AM
I migrated from phpbb and I have lots of wrong links in posts, that point to the non-existant viewtopic.php page (same thing as showthread.php in vB).

I would like to remove all those links from posts. What SQL queries do I need to run?

Any help would be greatly appreciated.

Tony G
07-01-2005, 10:23 AM
It's best to ask these sort of questions in the importing forums at http://www.vbulletin.com

Marco van Herwaarden
07-01-2005, 10:49 AM
UPDATE post SET pagetext = REPLACE (pagetext,'old-string','new-string') WHERE pagetext LIKE '%old-string%';
Just edit the above and replace 'old-string' (twice) with the link you want to replace, and 'new-string' with the new link.

PageUp
07-01-2005, 11:15 AM
It works. Thanks very much Marco.