Have a look at the attached pictures. I have imported my vBulletin into XenForo and all the color tags are converted to literal HTML. What's up with that? Shouldn't we just strip the BB Code or keep it as is and not render it?
How does it work by making it plain text? I wrote my own [color] tag because XenForo does not support [color=ff00ff] (without the # mark) which vBulletin does. Perhaps mine is rendering when it shouldn't.
Actually, just to confirm/clarify: if your custom BB code is using a callback, you need to choose what to do based on the type of BB code formatter in use (HTML, WYSIWYG, text, etc). The text replacement option I mentioned only applies if you're using a straight HTML replacmement.
Okay. I am looking into the scope of all this. Oh boy what a mess. I am not sure I think the way [plain][code] and [php] is treated is optimal. Shouldn't they just evaluate to [CODE] and [PHP]? I will need to go through all my codes and make sure they are handled well in plain text mode. Is there a good way to test this?
Aside from creating a test script for your needs, the text parser is used to create textual versions of posts/conversation messages for emails (the text version rather than the HTML version). It is also used for the thread quick preview.
Right. I am just thinking from the perspective of imported visitor messages from vBulletin. They display no line breaks so imported ones that contain code will look all mangled. This is why I think it would probably look better if it was just [CODE] instead of inline code with no line breaks. This is just 2786 out of the total 614222 imported VMs though of which 154 was made in the past 6 months.