How to parse BBCODE and filter in post_text field contents in phpbb_posts table
after taking out the content of the post_text field in the phpbb_posts table, there are
[code].#91 in the content; attachment=0:2b04cqxf.#93;! Chment:2b04cqxf.#93; [/code] such code. Excuse me, you guys, how do you filter them? Thank you
phpbbchia administrator IOsetting's answer
the specific processing process needs to look at the code in viewtopic.php.
[code] / Parse the message and / > >; Bbcode_bitfield'.#93;)
{
$bbcode-.gt; bbcode_second_pass ($message, $row.#91;'bbcode_uid'.#93; $row.#91;'bbcode_bitfield'.#93;);
}
; 'post_id'.#93;.#93;)
{
parse_attachments ($forum_id, $message, $attachments.#91; $row.#91;'post_id'.#93;.#93; $update_count); this part is parsed, converted to corresponding, parsing accessories, and filtering sensitive words. If you want to handle it, It is also necessary to follow these steps.