That's great news, although I'm probably the last to know.JoshyPHP wrote:Yes for both.
Quotes and pretty much all BBCodes are allowed with the possibility for the admin to disable the ones that shouldn't be used in the chat. I'll have to take a closer look at theJoshyPHP wrote:quotes are already disabled in chat and the message length is custom.
message_parser
class to find out exactly which checks I'd have to do myself and if it's worth the effort, considering the code needs to work for both 3.1 and 3.2.s9e\TextFormatter\Plugins\MediaEmbed\Configurator::add()
isn't saved anywhere. It's only used to create the necessary tag and configure the plugin then it's discarded.::add
in runtime, or after it was used once I can use the tag without adding it every time again in the code.add()
every time you create a new parser or renderer.Done.rxu wrote:May this topic be made sticky again, please? Thanks
Thanks, as it took some time to find the topicDavidIQ wrote:Done.
core.text_formatter_s9e_configure_after
event with $configurator->MediaEmbed->add()
. This way new site definitions will be also cached.[x]{TEXT}[/x]
) is never saved by the library.3 + 4
, and what's saved is the result, 7
.Code: Select all
[quote]test textformatter[/quote]
Code: Select all
<r><QUOTE><s>[quote]</s>test textformatter<e>[/quote]</e></QUOTE></r>
<QUOTE></QUOTE>
. The thing you see in s
and e
tags is the markup that generated it. Sometimes it would be from a BBCode, sometimes from Markdown, etc... One of the most important features of this storage format is that every single character from the original text is preserved. (except a few control characters like NUL bytes) You can always get the original text back, with the same original markup.<QUOTE>
because that's the language the renderer speaks and you need [quote]
(or >
in Markdown) so that you can get the original text back. It's relatively efficient when you consider that the alternative would be to store both the original text and the parsed text.