Log in

View Full Version : Replace text in all posts....like Replacing Phrases


Jordan17
04-04-2006, 08:35 PM
I have just changed the name of my forum, and also the domain to it, I want to change all of the text in posts to the new name.

You may think its pointless, but people have got links all over the place that wont work anymore.

Is there any way I can do this by replacing, like when you search for text in phrases and replace it?

SaN-DeeP
04-05-2006, 12:04 AM
to replace text in posts.
UPDATE post SET pagetext = REPLACE(pagetext,'www.olddomain.com','www.newdomai n.com')

replace text in pms.
UPDATE pmtext SET message = REPLACE(message,'www.olddomain.com','www.newdomain .com')

to replace text in signatures.
UPDATE usertextfield SET signature = REPLACE(signature,'www.olddomain.com','www.newdoma in.com')

you can acheive what you want from above queries :)

majorxp
05-22-2006, 02:43 PM
Thanks...this is exactly what I was looking for.

I also ran this too:

UPDATE smilie SET smiliepath = REPLACE(smiliepath, 'olddomain.com', 'newdomain.com')