The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hello,
Can someone please let me know how I can disallow the use of the SIZE vb tags in my forums signatures. Any information would be helpful. Thans. ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I may come across as an idiot here, but..
Remove the [SIZE] vBCode. Or try this: In individual vbCodes click on edit and click NO on the option part. |
|
#3
|
|||
|
|||
|
Where would I edit ...in what script...to have it say if the SIZE tags option is greater than 2 to make the option equal 2
I just want to eliminate the large fonts and I want to change the current posts on the forums large fonts to size 2. What script do I edit? |
|
#4
|
||||
|
||||
|
I think there are two ways you could do it, VT:
1) to strip it off all signatures, including existing ones, open admin/functions.php and find: Code:
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies); Code:
$post[signature] = preg_replace("/(\[)(size)(=)(['\"]?)([0-9]*)(\])(.*)(\[\/size)(\])/siU", "\\7", $post[signature]);
2) to strip it off all newly added or edited sigs, open members.php AND register.php and find in both: Code:
$signature=censortext($signature); Code:
$signature = preg_replace("/(\[)(size)(=)(['\"]?)([0-9]*)(\])(.*)(\[\/size)(\])/siU", "\\7", $signature);
Bira |
|
#5
|
|||
|
|||
|
How would I set that code so that it allows SIZE=1 but nothing higher than 2
So like: If SIZE>=2 then SIZE=2 Thanks Bira |
|
#6
|
||||
|
||||
|
I'm stuck on that one
![]() I thought it would be something like Code:
$signature = preg_replace("/(\[)(size)(=)(['\"]?)([0-9]*)(\])/siU", "[size=".iif('\\5'==1, 1, 2)."]", $signature);
|
|
#7
|
||||
|
||||
|
Erm, I may be completely offbase, and I've never explained a "hack" before (I mostly just read them, then ask my tech people if they can do them) but yesterday I actually changed the sizes in our sigs.
All I did was go into postbit_signature in the postbit templates and replace what was there with this: <smallfont>__________________<br> $post[signature]</smallfont> Did I mess something up? It seems to work nicely - all our sigs are tiny now. |
![]() |
|
|