I acually found it in the Post.pl File. It must have either been a bug or a mod replaced a line that was working correctly. Here was the problem
# Show only the 10 newest messages in the thread's summary
for (my $i = $#messages; $i >= $#messages - 9; $i--) { [b]This line would cause it to go beond a messages number if it was below say 2 so starting at 2 1 0 -1 -2 and display the messages twice. [/b]
$messages[$i] ? $line = $messages[$i] : next;
($trash, $tempname, $trash, $tempdate, $trash, $trash, $trash, $trash, $message, $ns) = split(/\|/,$line);
$tempdate = &timeformat($tempdate);
foreach (@censored) {
($tmpa,$tmpb) = @{$_};
$message =~ s~\Q$tmpa\E~$tmpb~gi;
}
my @words = split(/\s/,$message);
&wrap;
$displayname = $tempname;
if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
&wrap2;
$yymain .= qq~
<tr><td align=left class="catbg">
<font size="1">$txt{'279'}: $tempname</font></td>
<td class="catbg" align=right>
<font size="1">$txt{'280'}: $tempdate</font></td>
</tr>
<tr><td class="windowbg2" colspan=2 bgcolor="$color{'windowbg2'}">
<font size="1">$message</font>
</td></tr>~;
}
$yymain .= "</table></td></tr></table>\n";
}
else { $yymain .= "<!--no summary-->"; }
}
I then added this, now give me a break, It's been a very long time since I have written code, just got back into it after a couple years break. If there is a cleaner way let me know.
# Show only the 10 newest messages in the thread's summary
for (my $i = $#messages; $i >= $#messages - 9; $i--) {
if ($i >= 0){
END;
$messages[$i] ? $line = $messages[$i] : next;
($trash, $tempname, $trash, $tempdate, $trash, $trash, $trash, $trash, $message, $ns) = split(/\|/,$line);
$tempdate = &timeformat($tempdate);
foreach (@censored) {
($tmpa,$tmpb) = @{$_};
$message =~ s~\Q$tmpa\E~$tmpb~gi;
}
my @words = split(/\s/,$message);
&wrap;
$displayname = $tempname;
if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
&wrap2;
$yymain .= qq~
<tr><td align=left class="catbg">
<font size="1">$txt{'279'}: $tempname</font></td>
<td class="catbg" align=right>
<font size="1">$txt{'280'}: $tempdate</font></td>
</tr>
<tr><td class="windowbg2" colspan=2 bgcolor="$color{'windowbg2'}">
<font size="1">$message</font>
</td></tr>~;
}
}
$yymain .= "</table></td></tr></table>\n";
}
else { $yymain .= "<!--no summary-->"; }
}