Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1757

[3.3.x] Support Forum • Re: Fixing post_text BBCode via DB

$
0
0
Oh wow, talk about being lucky that this option just got added. And you knew about, and you replied to tell me. :)

That option is a lifesaver, it "just works".

Still have to fix "malformed" (double double quotes) BBCode in the DB beforehand, but that is a lot easier and safer to do than trying to replicate the final parsed structure with regex alone.

In my case this simple SQL

Code:

UPDATE phpbb.bb_posts SETpost_text = REGEXP_REPLACE(post_text, '\\[quote=""(.*?)""\\]','\[quote="\\1"\]')
was enough and super fast (took only a couple of minutes), followed by the reparse CLI command. Yes, that reparse command is incredibly slow (as expected) and takes ~10 hours on our 2.2 million posts.

There were some other minor BBcode errors that we could fix up directly in the DB, but having this quote issue fixed is a huge improvement of the quality. I love how many knowledgable people are active here ( and willing to share their knowledge). We made the right call to switch to phpBB. 8-)

Statistics: Posted by Senshi_x — Mon Nov 25, 2024 10:15 am



Viewing all articles
Browse latest Browse all 1757

Trending Articles