Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Overwriting StringManipulator's Parse() method
pea
New
I've been trying to overwrite the StringManipulator's Parse() method using an Extension, with the aim to render smilies after all the parsing has happened.
This doesn't work:
This doesn't work:
$Context->ObjectFactory->SetReference("StringManipulator", "RenderEmo");
class RenderEmo extends StringManipulator {
function Parse($String, $Object, $Format, $FormatPurpose) {
// this code never gets executed it seems
print 'hello.';
}
}
0
This discussion has been closed.
Comments
Basically something to parse all the text of a post when it gets displayed, optionally with the ability to check for the type of text (Text, HTML, Markdown, etc.)