The hack does not delete the previous "edited by" line, it just keeps adding more. It does add the number of times edited, but it's supposed to remove any existing "edited by" lines and then change the number to how many times it has been edited!
Total Edits hack by Dark Templar
##############################
#In postings.cgi, search for:
##############################
# append edit note to the message
$EditedMessage .= qq(
[This message has been edited by $UserName (edited $EditDate).]);
$EditedMessage= &PipeCleaner("$EditedMessage");
########################
#REPLACE with:
########################
# append edit note to the message
open(LOG, "<$CGIPath/edits/$ExactPath-$in{'ReplyNum'}-$topic");
$messageedited = ;
close(LOG);
open(LOG, ">$CGIPath/edits/$ExactPath-$in{'ReplyNum'}-$topic");
$messageedited = ++$messageedited;
print(LOG"$messageedited");
close(LOG);
if ($messageedited > 1) {
$EditedMessage .= qq(
[Edited $messageedited times, lastly by $UserName on $EditDate at $FormatTime] );
} else {
$EditedMessage .= qq(
[Edited $messageedited time by $UserName on $EditDate at $FormatTime] );
}
#######################
#In postings.cgi, find:
#######################
} else {
$EditDate = &DateFormat("$HyphenDate", "EuroExpanded");
}
#########################
#Add below that:
#########################
#format time
if ($TimeFormat eq "24HR") {
@timearray = split(/ /, $Time);
chomp($timearray[1]);
($gethour, $getmin) = split(/:/, $timearray[0]);
if ($timearray[1] eq "PM") {
if ($gethour < 12) {
$gethour = ($gethour + 12);
}
}
if ($AMpm eq "AM") {
if ($gethour == 12) {
$gethour = "0";
}
}
$gethour = sprintf ("%2d", $gethour);
$gethour =~tr/ /0/;
$getmin = sprintf ("%2d", $getmin);
$getmin =~tr/ /0/;
$FormatTime = "$gethour:$getmin";
} else {
$FormatTime = "$Time";
}
###############################
#In ubb_library.pl, search for:
###############################
sub EditUBBConvert {
my $EditThis = shift;
###################
#Add this below it:
###################
$EditThis =~ s/(nrn[Edited)(.*)( )//isg;
Upload both, CHMOD them to 755. Create a folder in your cgi folder called "edits" and CHMOD to 777