The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Trying to keep this simple, as I need it for my site now (some guy posted a 34 line, 7kb sig). Set $siglimit to the number of lines you want to be.
This is not particularly efficient, but it will limit sigs already in place. So... ![]() showthread.php, find: Code:
$signature= "\n__________________\n$userinfo[signature]"; Code:
$signature= "\n__________________\n";
$splitsig = explode("\n", $userinfo[signature]);
$siglimit = 6;
if (count($splitsig)>$siglimit) {
for ($i=0;$i<$siglimit;$i++) {
$signature .= "$splitsig[$i]\n";
}
} else {
$signature .= "$userinfo[signature]";
}
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
very nice, and simple too!
|
|
#3
|
|||
|
|||
|
oh what a dilemma now
my members have long sigs and they will roast me for implementing this hack
|
|
#4
|
|||
|
|||
|
is there a way in the member profile and on sign up to let them know there is a sig line limit ?
|
|
#5
|
|||
|
|||
|
couldn't you just add a line in your templates that says on the top that there is a sig limit
|
|
#6
|
|||
|
|||
|
No - that wasn't the point of the hack.
|
|
#7
|
|||
|
|||
|
Quote:
its their problem |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
Hello Ed,
Thank you sooooo much.
|
|
#10
|
|||
|
|||
|
Thanks Ed! Simple, yet effective. Took all of 30 seconds to "install" (if that's even the word for it) and works like a charm
|
![]() |
|
|