phpBB HTML on posts extension
Posted: Thu Nov 17, 2022 9:31 am
It has been released the HTML on post extension.
Render HTML into phpBB posts, if the user belong to the admin group (ID 5)
1.0.1 has been released, enjoy here:
viewtopic.php?t=1776
[quote]Copy the extension to phpBB/ext/w3all/htmlposts
Go to "ACP" > "Customise" > "Extensions" and enable the "Html posts" extension.
How to use
By default, only users that belong to the GroupID 5 (admins) (can be added more into the listener code) will have the capability to post an HTML content that so will be parsed as html. It is required that the very first post line content, start with (can be changed into the listener code into a custom one) this placeholder:
[HTMLMARKUP]
or the post content will not be parsed as HTML.
NOTE: if we want to display/render (not parse) some active bbcode like or anyone active into our phpBB, then entities should be used
test me i want to show bbcode tags <- will return -> test me i want to show bbcode tags
NOTE: if a single bbcode is found into the post text, then the post will not be parsed as HTML due to generate_text_for_display() that fire after on viewtopic.php
See example: viewtopic.php?p=5875#p5875
1.0.1 has been released, enjoy here:
viewtopic.php?t=1776
Go to "ACP" > "Customise" > "Extensions" and enable the "Html posts" extension.
How to use
By default, only users that belong to the GroupID 5 (admins) (can be added more into the listener code) will have the capability to post an HTML content that so will be parsed as html. It is required that the very first post line content, start with (can be changed into the listener code into a custom one) this placeholder:
[HTMLMARKUP]
or the post content will not be parsed as HTML.
NOTE: if we want to display/render (not parse) some active bbcode like or anyone active into our phpBB, then entities should be used
test me i want to show bbcode tags <- will return -> test me i want to show bbcode tags
NOTE: if a single bbcode is found into the post text, then the post will not be parsed as HTML due to generate_text_for_display() that fire after on viewtopic.php
See example: viewtopic.php?p=5875#p5875