PDA

View Full Version : Limiting font size


cirisme
08-04-2003, 10:00 PM
This hack allows you to limit the size tag so your users can't make posts with gigantic font sizes. :smoke: For example

Look at my really big font!

would be parsed as though it were:

Look at my really big font!

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:

forumdude
08-05-2003, 04:04 PM
Ahhh. Thats a glorious thing to see.

/me hits install button.

forumdude
08-05-2003, 04:18 PM
I tried that and when I used:

Size=1


and it became a size 3 instead of a smaller 1.

cirisme
08-05-2003, 07:00 PM
I updated the attachment, I used \d+ instead of \d\d+.

Legendary Kid
08-06-2003, 08:49 PM
Thanks I'll install :)

forumdude
09-24-2003, 02:12 AM
One of my users is using the + operator to break the size limit. Maybe there is a better way?


TESTING

Learner29
09-24-2003, 02:52 AM
This hack allows you to limit the size tag so your users can't make posts with gigantic font sizes. :smoke: For example

Look at my really big font!

would be parsed as though it were:

Look at my really big font!

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:


thank you for this excellent tip .

forumdude
10-11-2003, 11:48 PM
Ahh. Users have figured out how to break it and are telling each other.

mmmm. babysitting.