MyBB Community Forums

Full Version: class_parser: custom MyCodes allow/disallow list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In some plugins when only basic MyCode should be parsed (b,i,u,url, etc.) developers have to write custom MyCode parser to prevent parsing all of them.
The Parser class options should include black and white list of allowed MyCodes to parse.
(2012-08-13, 06:40 PM)Devilshakerz Wrote: [ -> ]In some plugins when only basic MyCode should be parsed (b,i,u,url, etc.) developers have to write custom MyCode parser to prevent parsing all of them.
The Parser class options should include black and white list of allowed MyCodes to parse.

Yes please. I could have made use of this a few times.
Sounds useful.
We could also then get rid of the parameter to explicitly allow/disallow the video mycode as we could either whitelist or blacklist it. I'm actually now thinking I've seen a similar discussion in the past, though I can't remember exactly when or the eventual outcome of said discussion.