As you can see, none of the hacks is a real "final". There is always something to optimize
This hack occupied us for several weeks. There are two versions right now:
- The first variation shows the last user and you can get into his profile with a click. This hack is also used here.
- The second variant leads us to the subscription of the last user in the covered thread.
And this is where our problem appears: there is no support for private forums with more than one page. because of that I build in the routine for that. what happened now was that every post that should still appear on the "old" page was linked to the new, and this was the same with every setting. To be short: something was totally wrong. I removed this bug so that the hack should be a "real" final now. hehe.
the change is very small and applies to Slurpee's original-routine in "forumdisplay.cgi" only, so this is the only thing you need exchanged.
##Slurpee's Last Username Hack for Thread Link
$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=2; $i< $thesetotal ; $i++){
$lastpage = "$CGIURL/forumdisplay.cgi?action=displayprivate&number=$number&topic=$threadinfo[1]-$i";
}
} else {
for (my $i=2; $i< $thesetotal ; $i++){
$lastpage = "$NonCGIURL/$ExactPath/HTML/$threadinfo[1]-$i.html";
}
}
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;
if ($replies >= 1) {
$lastAuthName = qq( by
$lastName );
}
else {
$lastAuthName = "";
}
##############
but just because it works perfectly for me it does not have to work for everyone else
Thats the reason for my question.