I went ahead and ran the SQL queries:
UPDATE `phpbb_posts` SET `post_text`= REPLACE(post_text, "bgtscc1.com/forum/", "bgtscc.net/")
UPDATE `phpbb_posts` SET `post_text`= REPLACE(post_text, "http://www.bgtscc1.com/forum/", "http://www.bgtscc.net/")
Please let me know if anyone finds any more broken links.
Forum Bugs
Moderators: Moderator, Developer, DM
- Endelyon
- Posts: 3606
- Joined: Sun Jul 06, 2014 4:24 am
- Zanniej
- Posts: 2454
- Joined: Sat Jan 11, 2014 11:28 am
- Location: The dark parts of the forum
Re: Forum Bugs
Thanks for the advice. I normally make a backup, edit the backup-file and save it under a new name, then import that one again (right after clearing the live-database). Might not be the fastest way, and comes with a bit of downtime, but you have most control over the changes being made, and can check them before they're changed in the live database.Aspect of Sorrow wrote:You can perform this in one fell swoop by select regex'ing a query in SQL with an update clause under the *_posts table. Don't use Apache's mod_rewrite, it's unnecessary for this.
Make sure you backed up the table first.
Yup, planned for this weekend!Maecius wrote:^ I love computers. ♡ They are magic in a box.
I think Zanniej is planning on doing exactly this (or something like this) this weekend sometime. Then all our links should point to the right forum.
You're like the unsung hero of all server-magic that no-one else of us get's. Don't go anywhere!! lolDuster47 wrote:Sweetness. I am feeling more obsolete every month to these magical boxes and their coding guru's.Maecius wrote:^ I love computers. ♡ They are magic in a box.
I think Zanniej is planning on doing exactly this (or something like this) this weekend sometime. Then all our links should point to the right forum.
And then :
Thanks for doing it for meEndelyon wrote:I went ahead and ran the SQL queries:
UPDATE `phpbb_posts` SET `post_text`= REPLACE(post_text, "bgtscc1.com/forum/", "bgtscc.net/")
UPDATE `phpbb_posts` SET `post_text`= REPLACE(post_text, "http://www.bgtscc1.com/forum/", "http://www.bgtscc.net/")
Please let me know if anyone finds any more broken links.
I might still do my approach, as to solve the issues with old links in signatures, images and all other things that are still hidden somewhere in the database. Otherwise we're bound to lose some links when the old server goes down.
Off to greener pastures
- LISA100595
- Retired Staff
- Posts: 5202
- Joined: Mon Aug 22, 2011 12:23 pm
Re: Forum Bugs
I just tested a couple links at the bottom of people's posts in their signatures.. it goes to the old forum post then quickly goes back to this one's Board index page.
Lady Elvina Aira-S'efarro - The Order of the Silver Rose
Salaria - Bounty Hunter half-sister of Darius Brothers
Angelina Northstar - Holy Warrior of Tyr / Knight of the Silver Rose
Matilda Stonehold - Honorable Sheild Dwarf
Loriah Swift - Morninglord of Lathander
Salaria - Bounty Hunter half-sister of Darius Brothers
Angelina Northstar - Holy Warrior of Tyr / Knight of the Silver Rose
Matilda Stonehold - Honorable Sheild Dwarf
Loriah Swift - Morninglord of Lathander
- Endelyon
- Posts: 3606
- Joined: Sun Jul 06, 2014 4:24 am
Re: Forum Bugs
np ZanniejZanniej wrote:Thanks for doing it for me
I might still do my approach, as to solve the issues with old links in signatures, images and all other things that are still hidden somewhere in the database. Otherwise we're bound to lose some links when the old server goes down.
For what it's worth, I wouldn't use regexp as AoS suggested but simply replace the `phpbb_posts` and `post_text` references in the above two statements with whatever table and column you want to effect.
- TarnishedSoul
- Retired Staff
- Posts: 1868
- Joined: Fri Nov 27, 2015 11:06 pm
- Location: Candlekeep
Re: Forum Bugs
I came here to post this same thing, as I thought I'd make some biography updates. I discovered that all of my links - to other biographies, to RP posts, to screenshots - all do the same thing as described. Is there any way to automate the swap, or will I need to update every. single. link. by hand?LISA100595 wrote:I just tested a couple links at the bottom of people's posts in their signatures.. it goes to the old forum post then quickly goes back to this one's Board index page.
- Aspect of Sorrow
- Custom Content
- Posts: 2688
- Joined: Fri Mar 28, 2014 7:11 pm
- Location: Reliquary
Re: Forum Bugs
REPLACE won't fix enc errors without first converting to binary, so if you have a broken character, it'll pass over instead because it didn't match.Endelyon wrote:For what it's worth, I wouldn't use regexp as AoS suggested but simply replace the `phpbb_posts` and `post_text` references in the above two statements with whatever table and column you want to effect.
- Zanniej
- Posts: 2454
- Joined: Sat Jan 11, 2014 11:28 am
- Location: The dark parts of the forum
Re: Forum Bugs
I'll automate this the coming weekend. I'll let you all know when it's done. If after that all of you could do another thorough check of the forum I'd be very gladTarnishedSoul wrote:I came here to post this same thing, as I thought I'd make some biography updates. I discovered that all of my links - to other biographies, to RP posts, to screenshots - all do the same thing as described. Is there any way to automate the swap, or will I need to update every. single. link. by hand?LISA100595 wrote:I just tested a couple links at the bottom of people's posts in their signatures.. it goes to the old forum post then quickly goes back to this one's Board index page.
Off to greener pastures
- thids
- Posts: 1252
- Joined: Sat May 25, 2013 11:05 am
Re: Forum Bugs
http://bgtscc.net/index.php still displays as "under maintenance". It's my favorite button 
Lord Maximilian Blackthorne - retired
- thids
- Posts: 1252
- Joined: Sat May 25, 2013 11:05 am