![]() |
Limiting font size
This hack allows you to limit the size tag so your users can't make posts with gigantic font sizes. :smoke: For example
[disable]Look at my really big font![/disable] would be parsed as though it were: [disable]Look at my really big font![/disable] It works everywhere bbcodeparse() is used, so signatures, posts etc will all be limited. It has only been tested on 2.2.9, though it should work on any version. :classic: |
Ahhh. Thats a glorious thing to see.
/me hits install button. |
I tried that and when I used:
PHP Code:
and it became a size 3 instead of a smaller 1. |
I updated the attachment, I used \d+ instead of \d\d+.
|
Thanks I'll install :)
|
One of my users is using the + operator to break the size limit. Maybe there is a better way?
PHP Code:
|
Quote:
thank you for this excellent tip . |
Ahh. Users have figured out how to break it and are telling each other.
mmmm. babysitting. |
All times are GMT. The time now is 03:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|