• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Control Font BBCODE?

zooki

Active member
#1
Hi is there a way to control the use of BBCODE?

I am tired of some users who keep thinking it is necessary to write in the biggest and most colorful of text possible.
Because it is just plain ugly.
And not neeeded!!


It looks awful when people do this for long posts and articles.
Do i need to PM them and educate them? The fact that whatever they write, is much easier and more pleasant to read when it is a normal font.
 

Digital Jedi

Well-known member
#2
Do you have a style guide in place for articles? We pretty much required our users to follow certain rules when submitting an article. We never had the issue with outrageous font size being used, but we did make it clear that all submitted articles would be copy-edited, just like they would be on any other professional website, and to expect changes to their article.
 

cclaerhout

Well-known member
#3
Hi is there a way to control the use of BBCODE?
If you want to get rid of TinyMCE buttons, just use the Bbcm.
If you want to disable Bb Codes parsing, you will need to know how to code a little:
1) create a listener: load_class_bb_code
2) in the listener callback extend the class XenForo_BbCode_Formatter_Base
3) in your XFCP callback extend the public function getTags()
Use a code like this:
PHP:
    public function getTags()
    {
        return parent::getTags();
        
        /*Uncomment below line to disable the rendering of the bold tag:*/
        //unset($this->_tags['b']);
        

        /*Uncomment below line to render only the content of the bold tag:*/
        //$this->_tags['b'] = array('replace' => array('', ''));
    }
This function could be added easily to the Bbcm.
 

zooki

Active member
#4
Do you have a style guide in place for articles? We pretty much required our users to follow certain rules when submitting an article. We never had the issue with outrageous font size being used, but we did make it clear that all submitted articles would be copy-edited, just like they would be on any other professional website, and to expect changes to their article.
No I do not, but that sounds like a good initiative. The problem is there are thousands of members and not all are there to share articles. People compete for attention, some think big bold letters or even subject headings is the way to do it.

If you want to get rid of TinyMCE buttons, just use the Bbcm.
If you want to disable Bb Codes parsing, you will need to know how to code a little:
1) create a listener: load_class_bb_code
2) in the listener callback extend the class XenForo_BbCode_Formatter_Base
3) in your XFCP callback extend the public function getTags()
Use a code like this:
PHP:
    public function getTags()
    {
        return parent::getTags();
       
        /*Uncomment below line to disable the rendering of the bold tag:*/
        //unset($this->_tags['b']);
       
 
        /*Uncomment below line to render only the content of the bold tag:*/
        //$this->_tags['b'] = array('replace' => array('', ''));
    }
This function could be added easily to the Bbcm.
Thank you, this might be just what I need .