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

XF 1.3 Remove color/formatting in posts?

#1
How can I remove colors and formatting in threads/posts? My users are putting color and bold/italics in every post...You can imagine how annoying this is.

Thanks!
 

AndyB

Well-known member
#3
Here are instructions to remove the buttons in the toolbar.

/js/xenforo/full/bb_code_edit.js

Comment out unwanted buttons using the /* ... */

Starting on line #64

Code:
		getButtonConfig: function()
		{
			var self = this,
				buttons = [ ['switchmode'], ['removeformat']],
				bC = this.options.buttonConfig,
				group;

			if (!bC || bC.basic)
			{
				buttons.push(['bold', 'italic', 'underline'/*, 'deleted'*/]);
			}
			/*if (!bC || bC.extended)
			{
				buttons.push(['fontcolor', 'fontsize', 'fontfamily']);
			}*/
			if (!bC || bC.link)
			{
				buttons.push(['createlink', 'unlink']);
			}
			/*if (!bC || bC.align)
			{
				buttons.push(['alignment']);
			}*/
			if (!bC || bC.list)
			{
				buttons.push(['unorderedlist', 'orderedlist'/*, 'outdent', 'indent'*/]);
			}
			else if (bC.indent)
			{
				buttons.push(['outdent', 'indent']);
			}