Hopefully this thread title will be general enough to allow unified and continued use of this thread in the future.
My query is in relation to a probable bug. I discovered while writing a PM that the [code] tag doesn't work properly across the site. BBCode still executes inside the code tags (rather than escaping them) and I have to use the hack below to get the expected output...
FURTHER OBSERVATIONS:
The [nobbc] tag does not appear to be implemented either. This would be a handy addition, if possible. I had to use the same workaround for all printed bbcode above, whether inside code tags or not.
I don't know anything about setting up BBCode support so I don't know if anything can actually be done about the above but I figure it can't hurt to bring it up.
If there's anything I can do to help or debug, let me know. I'd be happy to do so.
les wrote:
I do know that not all BBCode is permitted
I am aware that this is often the case on forums, but since Code is one of the shortcuts offered underneath the post editor, and it already halfway works, I assume that it was intended to be permitted. However, I assume this is the case for Nobbc but I see no reason for disabling it since it can only result in text output.
We are using a phpBB3 mod for syntax highlighting. This mod hasn't seen an update in many years, so my guess is that one of the phpBB updates since then introduced this bug. It could also be that I incorrectly applied an update.
Right now this bug doesn't have enough impact to warrant for me to spend a lot of time debugging.
If any PHP coders out there want to help, this is the mod we're using:
So the first step would be to install that on a clean phpBB 3.0.11 and see if the bug described above occurs. If yes, the problem is with the mod, you could fix it and publish the fix. If not, then it means it's some problem specific to Milovana. If that's your finding let us know.
Seems like you could program a custom BBCode tag, similar to the "spoiler" tag - I happen to know that forum software like the kind currently in use on this forum allows for this.
tag have to be added by modifying the PHP code unfortunately.
Note that the [code] tag actually comes built-in, we just added a mod for syntax highlighting.