Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 23
J
newbie
newbie
J Offline
Joined: Aug 2006
Posts: 23
I recently changed my domain name from da7.com to audiotalkback.com

I'd like to use the Active Text feature to replace any instances in old posts. So for example I might have http://www.da7.com/filearchive I want to make the da7 part become audiotalkback

Can I do this - can I do this for links? How do you do wildcards?

Thanks!

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I think the censor may do a better job of this; neither the Censor nor ActiveText however deal with wildcards; they'd replace a word (or in this case a section in a link) with another string. I haven't tested either with a URL but I think the Censor is more suited.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Gizzy, the censor will only effect posts made after the censor has been changed, so that wouldn't work on old posts.

Actually, the best way to do this is with a mysql regex. You should probably backup your database before doing this, because this will check all rows, and a typo could be a problem wink You should probably close your board while you do this as well as it might take quite awhile run.

UPDATE ubbt_POSTS SET POST_BODY = REPLACE(POST_BODY, 'www.da7.com','www.audiotalkback.com'),POST_DEFAULT_BODY = REPLACE(POST_DEFAULT_BODY,'www.da7.com','www.audiotalkback.com')

Joined: Aug 2006
Posts: 23
J
newbie
newbie
J Offline
Joined: Aug 2006
Posts: 23
Thanks. I'll definately backup the database before trying this.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Interesting method; and yeh I guess you're right about the method I outlined


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 23
J
newbie
newbie
J Offline
Joined: Aug 2006
Posts: 23
Rick - the mysql regex command you gave above worked like a charm. On a table that was 110 MB it only took a few minutes to complete. Thanks!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 626 guests, and 153 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 20240501)