Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Tripredacus on February 19, 2021, 11:38:44 AM

Title: Disabled BBCode, no effect, forum still parses BBCode
Post by: Tripredacus on February 19, 2021, 11:38:44 AM
Forum version: SMF 2.0.5 (yes i know, upgrade, but I am not in charge of this)

In Admin CP, there is the section where specific BBCodes can be enabled or disabled. What I want to do is disable a few, specifically BR and TR (TD and table can go, doesn't matter). If I uncheck the boxes for BR and TR, it seems ok, but doing a test post, the forum will still parse these codes. It does this for admins, mods or regular users. I want to be able to type [ TR ] (without spaces) in a post without using codebox, but not disable BBCode for the entire post.

In my test post, I type this:

Text [TR]
Text [BR]


and submit shows as

Code
Code

and on edit, shows as:
Text [table][tr][td]
Text [BR][/td][/tr][/table]


I am presuming that by unchecking the boxes for br and tr tags in the admin cp, these tags should be ignored in posts (going forward), but it obviously isn't. So what files can I look at to actually disable these codes?
Title: Re: Disabled BBCode, no effect, forum still parses BBCode
Post by: Aleksi "Lex" Kilpinen on February 19, 2021, 11:43:03 AM
Interesting issue, have you tried emptying the cache? ( Just thinking, the setting might be cached. )

There is a different approach to that too, you can surround any bbc with [nobbc][/nobbc] to achieve what I did here. :P
Title: Re: Disabled BBCode, no effect, forum still parses BBCode
Post by: Kindred on February 19, 2021, 12:51:56 PM
I don't think that you can disable TR without also disabling table and td
Title: Re: Disabled BBCode, no effect, forum still parses BBCode
Post by: shawnb61 on February 19, 2021, 01:00:20 PM
I just tried it, and OP is correct, the individual bbc disable flags do not work for these. 

Yeah, I thought the same about table/tr/td.  So I tested disabling all the table, tr, td, br, etc.  Same behavior.  In fact, I disabled all via the checkboxes & see the same behavior.

It's a bug.  Not a new one, either, as 2.0.17 behaves the same way.
Title: Re: Disabled BBCode, no effect, forum still parses BBCode
Post by: Tripredacus on February 19, 2021, 04:40:07 PM
Quote from: Aleksi "Lex" Kilpinen on February 19, 2021, 11:43:03 AM
There is a different approach to that too, you can surround any bbc with [nobbc][/nobbc] to achieve what I did here. :P

This will work for me in the interim, but otherwise good to see I did find some bug.
Title: Re: Disabled BBCode, no effect, forum still parses BBCode
Post by: Steve on February 20, 2021, 08:21:43 AM
Marking solved then. And consider the bug you found reported. :)