Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2008
Posts: 514
addict
addict
Joined: Jan 2008
Posts: 514
Hey all, had to rebuild my whole system from a failed harddrive. I had backups etc. however when I redid my forums I redid the domain. Now my relative linking for my images (i.e. custom avatars) etc. are still linking to a folder that doesn't exist anymore and I need to update them somehow to point to the new web address. Is there an sql query I can run to update all these orphaned links?

Dunny

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
For avatars it would be something like this I believe

SQL Query
UPDATE ubbt_USER_PROFILE SET USER_AVATAR = replace(USER_AVATAR, 'http://www.yourdomain.com/old_path/images/', 'http://www.yourdomain.com/new_path/images/')

Last edited by gliderdad; 02/18/2011 8:13 PM.

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
0 members (), 740 guests, and 157 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240505)