Quote:
Originally Posted by julius
How can I fix it so users cannot change [SIZE=5] to [SIZE=7] or, even if they change it, the parse is no more than size=5?
|
On my forum I wanted size 4,5,6,&7 to parse as size 2 so I used Replacement Variables as follows:
variable string: <font size="7"> or [size=7] etc
replacement string: <font size="2"> or [size=2] etc
Admin CP > Styles & Templates > Replacement Variable Manager > Add New Replacement Variable > Search for Text: [size=7]
Replace with Text: [size=2]
Repeat the above with:
Search for Text: [size=6]; [size=5]; [size=4]; <font size="7">; <font size="6">; <font size="5">; <font size="4"> in turn.
Replace with Text: [size=2] or <font size="2"> for vbcode or html.
Works a treat for signatures and posts. Of course, a persistent and clever user can edit the size tag to size=100 and size 7 will be parsed but that should rarely happen.