The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Limit [SIZE] tag
I was looking around for a hack to limit how large users can make their text size via the vb [SIZE] tag.
I was looking at the preg_replace() function ( http://us4.php.net/manual/en/function.preg-replace.php ). I'm not sure what to do because the size tag can be done in two different ways making the replace statement more difficult: PHP Code:
Size=+4 Any help would be appreciated. Size=100 in signatures gets old quick. Thanks! |
#2
|
||||
|
||||
<font size="100">test</font>
html limits dont go past +4 as far as i understood |
#3
|
|||
|
|||
PHP Code:
Just experiment with positioning. |
#4
|
||||
|
||||
hmmm. I suppose that's a good start but it didn't work completely on my site.
Size=100 still went through (or anything over 13) and some of the other sizes I tried ended up as this character: |
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
Quote:
I just realized that the other day(after a member used 15), so I updated my code to handle it: PHP Code:
PHP Code:
|
#7
|
|||
|
|||
Just tested it, and this works well:
PHP Code:
|
#8
|
||||
|
||||
Quote:
Try the statement: PHP Code:
|
#9
|
|||
|
|||
Make sure you change the \1 to have double slashes(\\1), apparently vb.org's php tags mess up the double slashes.
|
#10
|
||||
|
||||
Ahhh thanks.
My only consideration now would be if someone enters the number 1000000 for the size. Hehehe. Nice site btw. I registered there under Ibuprofen. Good reading for sure. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|