Announcement
Collapse
No announcement yet.
[MINOR RELEASE] Signature Length
Collapse
X
-
-
Great hack. I have really been needing something like this.
ThanksComment
-
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?PaintballCity.com
VB Board of the Month: OctoberComment
-
Works perfect,
thanks to VirtueTech, too for the hint,
-Tomwww.MCSEboard.de
German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs insideComment
-
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:
PHP Code:// ####### SIG LENGTH HACK #######
$sigcount = count(split("\n", $signature));
if ($sigcount > $signaturelength) {
eval("standarderror(\"".gettemplate("error_siglength")."\");");
exit;
}
// ####### SIG LENGTH HACK #######
PHP Code:// ####### SIG LENGTH HACK #######
if (strlen($sigcount) > $signaturelength and $signaturelength) {
eval("standarderror(\"".gettemplate("error_siglength")."\");");
exit;
}
// ####### SIG LENGTH HACK #######
MadmanLast edited by Bad_Madman; Sat 28 Jul '01, 9:04pm.Comment
-
Originally posted by atrl
It Wont Work For Me Any Help I can Enter All I Want To and it wont limit it?
MadmanComment
-
Works in 2.0.3
Hi,
works great in 2.0.3, to upgrade I took that piece
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!
-Tomwww.MCSEboard.de
German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs insideComment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment