The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BB Code Font Size: Limit to max size=5
I changed the Available Sizes of the Toolbar Menu Options to
1 2 3 4 5 but in standard mode when you post, you can manually change [SIZE=5] to [SIZE=7]. 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? |
#2
|
||||
|
||||
Try this hack (it's for RC2, might also work for earlier versions)
File functions_newpost.php Before PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thanks.
It works, but if I put [size=07] or 08, 09, 10, 11 until [size=99] it always parses as [size=7] instead of [size=5]. |
#4
|
||||
|
||||
Hmm ... ok. Haven't thought of leading zeros.
Give it another try then: PHP Code:
|
#5
|
||||
|
||||
I think you should post that up in the Mini-Mods subforum.
|
#6
|
|||
|
|||
Link14716, it works fine now when you enter a new post, but if after you have posted you edit the post, you can still change the size to a bigger size.
|
#7
|
||||
|
||||
For edit it's almost the same:
File editpost.php Before PHP Code:
PHP Code:
|
#8
|
||||
|
||||
Go for it.
|
#9
|
|||
|
|||
Thanks, it works now.
|
#10
|
|||
|
|||
Quote:
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|