Last edited by MrBlunt; Mon 20th Aug '01 at 1:53am.
Last edited by MrBlunt; Mon 20th Aug '01 at 1:53am.
Too funny eva
will try this hack.
nice hack !! its working real nice and a real easy installTnx mate!
Great hack. I have really been needing something like this.
Thanks
good job. i was meaning to get something like this!
- MrLister
First off thanks for the hack...been looking for something like this...Second..I had a small problem with the hack because the template error_siglength gets put into templateset ID #1
My default template set ID was 4...so anyone else who might have the same issue...just use phpMyAdmin to correct the template's "templatesetid" field.
Just a heads up for users in my boat.
Thanks again for the hack.
Oh and I remember a ways back Ed Sullivan created a way to only show 6 lines of the signature on the showthread.php script for v1.13...anyone know how to do that here?
excellent hack, great implementation!
Works perfect,
thanks to VirtueTech, too for the hint,
-Tom
www.MCSEboard.de
German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside
$signaturelength doesn't seem to contain a value for me.. ( v 2.0.1 ). Any idea ?
This is a great hack, but needs to limit characters as well. If not, a user can simply not use any breaks and they can still have a huge sig, since it's technically only 1 really really long line.
Update: Sorry, there was an error:Originally posted by kchii
This is a great hack, but needs to limit characters as well. If not, a user can simply not use any breaks and they can still have a huge sig, since it's technically only 1 really really long line.
wrong: if ($sigcount > $signaturelength and $signaturelength)
right:if (strlen($sigcount) > $signaturelength and $signaturelength)
now it is correct (see below)
replace in member.php and register.php:
withPHP Code:// ####### SIG LENGTH HACK #######
$sigcount = count(split("\n", $signature));
if ($sigcount > $signaturelength) {
eval("standarderror(\"".gettemplate("error_siglength")."\");");
exit;
}
// ####### SIG LENGTH HACK #######
... and now 'Signature Length' (in User and registration options) the characters instead of lines ...PHP Code:// ####### SIG LENGTH HACK #######
if (strlen($sigcount) > $signaturelength and $signaturelength) {
eval("standarderror(\"".gettemplate("error_siglength")."\");");
exit;
}
// ####### SIG LENGTH HACK #######
Madman
Last edited by Bad_Madman; Sun 29th Jul '01 at 1:04am.
It Wont Work For Me Any Help I can Enter All I Want To and it wont limit it?
with or without my changes?Originally posted by atrl
It Wont Work For Me Any Help I can Enter All I Want To and it wont limit it?
Madman
Irren ist menschlich. Aber wenn man richtig Mist
bauen will, braucht man einen Computer.
I think i fixed it but somehow it is now on the CP options twice? How Do I take one out?
Hi,
works great in 2.0.3, to upgrade I took that piece
and pasted it into member.php and register.php as stated above.PHP Code:// ####### SIG LENGTH HACK #######
$sigcount = count(split("\n", $signature));
if ($sigcount > $signaturelength) {
eval("standarderror(\"".gettemplate("error_siglength")."\");");
exit;
}
// ####### SIG LENGTH HACK #######
I do like wo work it this way, i.e. to limit the lines.
Some of my users tend to make ~5 lines which is too much imo.
Limiting the chars won't limit the lines, too.
So I like it!
-Tom
www.MCSEboard.de
German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside
Bookmarks