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

[3.3.x] Convertors • Re: convert ancient IPB to phpBB?

$
0
0
HTML is not allowed in phpBB, the only thing that is surprising is that it's not converting it to plain text. If it's just getting deleted I'd check what other HTML is getting deleted. Regardless of the circumstances you need to convert the HTML to BBcode to have it work.

In posts table make sure enable_bbcode, enable_magic_url and enable smiies are all set to 1 on posts otherwise they will be parsed as plain text.

Using REGEXP_REPLACE(or some other method) convert the HTML to BBcode and then run the reparser.

Replace this:

Code:

<a href="https://flic.kr/p/27Yfjtb" target="_blank"><img src="https://farm2.staticflickr.com/1761/42643350624_5b2b19078a_b.jpg" border="0" class="linked-image" /></a>
With this:

Code:

[url=https://flic.kr/p/27Yfjtb][img]https://farm2.staticflickr.com/1761/42643350624_5b2b19078a_b.jpg[/img][/url]
Run reparser with --force-bbcode-reparsing option, this is a new option and you need 3.3.14 or better for this option:

Code:

php /path/to/bin/phpbbcli.php  --safe-mode reparser:reparse  --force-bbcode-reparsing --ansi
Once you run reparser it should be formatted like this in DB:

Code:

<r><URL url="https://flic.kr/p/27Yfjtb"><s>[url=https://flic.kr/p/27Yfjtb]</s><br/><IMG src="https://farm2.staticflickr.com/1761/42643350624_5b2b19078a_b.jpg"><s>[img]</s>https://farm2.staticflickr.com/1761/42643350624_5b2b19078a_b.jpg<e>[/img]</e></IMG><br/><e>[/url]</e></URL></r>
-----------

Optionally for links to major content sites like Youtube, Flickr, X, etc you can reduce it to single URL. Install the media embed extension and run the reparser.

https://www.phpbb.com/customise/db/exte ... ediaembed/

Statistics: Posted by thecoalman — Tue Mar 04, 2025 1:34 pm



Viewing all articles
Browse latest Browse all 2457

Trending Articles