Well I fixed it myself, well at least the problem with the private forums, I dont exactly know what you did there repstien, but i didnt need to do that...
if ($PrivateMax eq "yes") {
$ThisURL = qq($CGIURL/forumdisplay.cgi?action=displayprivate&number=$number&topic=$threadinfo[1]);
} else {
$ThisURL = qq($NonCGIURL/$ExactPath/HTML/$threadinfo[1].html);
}
$replies = $threadinfo[3];
$totalposts = $replies;
$lastpage = "";
$thesepages = $totalposts / $HTMLDisplayMax;
my ($thesetotal,$remainder) = split(/./,$thesepages);
$thesetotal = $thesetotal+2;
$lastpage = "$ThisURL";
if ($PrivateMax eq "yes") {
for (my $i=20; $i< $thesetotal ; $i++) {
$lastpage = "$CGIURL/forumdisplay.cgi?action=displayprivate&number=$number&topic=$threadinfo[1]-$i";
}
} else {
for (my $i=20; $i< $thesetotal ; $i++) {
$lastpage = "$NonCGIURL/$ExactPath/HTML/$threadinfo[1]-$i.html";
}
}
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;
if ($replies >= 1) {
$lastAuthName = qq(
last reply by:
$lastName );
}
else {
$lastAuthName = "";
}
so far the newer posts have been working, but i still don't know why i got that last reply by: 0 thing... must of been a fluke..
but this little code up there let's the private forums show "last reply by: "
------------------