TinyPortal
Development => Support => Topic started by: limitzero on September 10, 2012, 07:58:25 AM
SMF version: 2.0.2
TP version: 1.0 Final
Default Forum Language: English
Theme name and version: Custom Theme
Browser Name and Version: Firefox 15
Mods installed: Just TP
Related Error messages: N/A
Hi, I know I can turn off the BBC Code from Tinyportal Shoutbox settings, but I was wondering if someone can guide me to removing the use of BB Code completely from shoutbox. So that abusive users will not be able to shout using say the img tags or any other BB tags for that matter.
Thank you
Hello limitzero,
Welcome to the TinyPortal Support site.
So, let me see if I understand what you are asking for. Rather than just removing the various buttons for bb code, like bold, underline, attach image, etc., you want to totally disable the use of all bbcode in the ShoutBox. Is that correct?
We have discussed the disabling of bbcode in the ShoutBox in the past, all of it or certain bbcodes, but the consensus of the Tinyportal Team is that people don't generally want to do this. There has been quite a bit of discussion by the Team as to what codes may or may not cause security issues, and the ones that are detrimental have indeed been disabled. I can't recall anyone else asking for this feature in the past though I can see where you are coming from on the issue. For instance, why allow images when the attached image might be too wide to see without scrolling.
Ichbin, our chief developer, may be able to tell you what code needs to be edited to do this if only one or two files could be edited to disable the codes but it's not something that will be added to the code in TP1. If you would like to see this feature in a future version of TinyPortal, the way to do this is to place a Feature Request into our bugtracker (http://www.tinyportal.net/index.php?project=1) and we can take a look at this before coding is complete for the next major version to see how difficult the task may be. That's about all I can tell you about this right now.
ZarPrime
Yes, you have it correct. I've had some abusive spammers/users who are causing trouble posting inappropriate material using the img tag and other various tags which is why I was wondering about this instead of having to ban them completely every time
If I remember right you can just search in the tp-files/tp-modules/TPShout/Sources/TPShout.php file for the code parse_bbc. That is where the function is called that we parse all the BBC code that is put into the shout. You can remove that function call to make it so that any BBC code is not translated in the shout. Apart from that, any further feature you want for your shoutbox would have to be written.