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

Control Font BBCODE?

Discussion in 'XenForo Questions and Support' started by zooki, Mar 24, 2013.

  1. zooki

    zooki Active Member

    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.
  2. Digital Jedi

    Digital Jedi Well-Known Member

    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.
  3. cclaerhout

    cclaerhout Well-Known Member

    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:
        public function getTags()
    /*Uncomment below line to disable the rendering of the bold tag:*/

            /*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 likes this.
  4. zooki

    zooki Active Member

    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.

    Thank you, this might be just what I need .
  5. cclaerhout

    cclaerhout Well-Known Member

    Done - see here.

Share This Page