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
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 298 guests, and 124 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)