View Full Version : Font Size Abuse - limit size bbcode
oldengine
Wed 28th May '08, 6:06pm
http://www.vbulletin.com/forum/showthread.php?t=216827&highlight=maximum+font+size
The earlier versions on this forum are full of requests to limit font sizes, but no one has a good answer. I have limited the dropdown size in the editor, but users can still enter the bbcode manually [ size = ].
Surely there must be a solution to this problem, but I've looked here and on vbulletin.org without results. The size command must be interpreted somewhere. Can't we simply put a cap on it?
Wayne Luke
Wed 28th May '08, 6:10pm
You can remove the sizes from the drop down under Styles & Templates -> Style Manager -> Toolbar Menu Options (on All Style Options dropdown).
However you can't stop them from using it manually without a code modification. The size code simply uses predefined values present in HTML.
Andy
Wed 28th May '08, 6:43pm
Just disable it in your Admin CP
Admin CP -> vBulletin Options -> BB Code Settings -> Allow Size BB Code -> unchecked
oldengine
Thu 29th May '08, 8:37am
I don't want to disable it. I want to limit it so that the 5, 6 and 7 sizes simply aren't there. I have already removed those sizes from the drop down editor, but wiseacres know they can use the SIZE bbs code.
Short of yanking them from vbulletin_textedit.js there must be a simple way of handling this in a template? Yes, I've checked vbulletin.org.
Andy
Thu 29th May '08, 8:52am
I don't want to disable it. I want to limit it so that the 5, 6 and 7 sizes simply aren't there. I have already removed those sizes from the drop down editor, but wiseacres know they can use the SIZE bbs code.
Short of yanking them from vbulletin_textedit.js there must be a simple way of handling this in a template? Yes, I've checked vbulletin.org.
Hacking vbulletin_textedit.js is a great way to accomplish what you want to do. Just add a line of code that substitutes 5, 6 and 7 sizes with the default size.
oldengine
Thu 29th May '08, 10:56pm
Very carefully, on my test forum. :)
Gladius
Tue 8th Jul '08, 10:27pm
Wayne, how about moving this to the suggestions forum? I think that properly limiting it is really something that should have been implemented ages ago. Right now the only practical solution is to either turn it off completely or constantly deal with idiots abusing it. At least allowing for basic limiting of it to a certain size only should be possible. The same goes for colours...
oldengine
Thu 17th Jul '08, 1:24am
Fine by me to move it. Thanks.
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.