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

phpBB Custom Coding • Re: changing post content over all sub-forum

$
0
0
First create a backup of the DB. Personally I would do this on test DB on local machine first.

https://www.phpbb.com/support/docs/en/3 ... eb-server/

Go into your hosting control panel and open phpMyadmin. Open the table phpbb_posts*, click the search tab on the top, then click the find and replace button. For the column select post_text, you can repeat for the column post_subject. In phpbb_topics table same thing for post_title and topic_last_post_subject.

Just be warned when using find and replace this matches anything. e.g. finding chapter 2 and replacing it with chapter 3 turns "chapter 20" into "chapter 30". In that case you can add space after the 2. That however will miss anything with punctuation and then there is the issue of text like "in chapters 2 and 3"

Since you mentioned two programming languages if you are familiar with regex you can also use REGEXP_REPLACE for more precise matching.

https://mariadb.com/kb/en/regexp_replace/

*phpbb_ is default prefix for tables, yours may differ.

*

Statistics: Posted by thecoalman — Mon Aug 19, 2024 7:09 pm



Viewing all articles
Browse latest Browse all 1732

Trending Articles