Ooops, i do have a serious problem on my 5.45, changed the forumdisplay, when opening the forumdisplay on my ubb there's an error message, 'illegale division by zero in line 976' (it's the line "$lastpage = "$NonCGIURL/$ExactPath/HTML/$threadinfo[1]-$i.html";"), my source looks like this:
sub TopicGutsHTML {
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);
}
##Slurpee/Sephiroth(Dark Templar)'s Latest reply by username hack
$replies = $threadinfo[3];
$totalposts = $replies+ 1;
$lastpage = "";
$thesepages = $totalposts / $HTMLDisplayMax;
if ($remainder >= 0) { $thesepages++; }
if ($thesepages > 0) {
$lastpage = "$ThisURL";
for (my $i=2; $i< $thesepages; $i++){
if ($PrivateMax eq "yes") {
$lastpage = "$CGIURL/forumdisplay.cgi?action=displayprivate&number=$number&topic=$threadinfo[1]-$i";
} else {
$lastpage = "$NonCGIURL/$ExactPath/HTML/$threadinfo[1]-$i.html";
}
}
}
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;
if ($replies >= 1) {
$lastAuthName = qq(
Latest reply by:
$lastName );
} else {
$lastAuthName = "";
}
if (-e "$NonCGIPath/$ExactPath/ubbcount.file") {
open(CHECK, "$NonCGIPath/$ExactPath/ubbcount.file") || die ( &StandardHTML("Unable to open forum's counting file for reading
$!") );
@dta =
;
close(CHECK);
$final_hits = 0;
foreach $dta_line(@dta) {
chomp($dta_line);
($xurl, $xcount) = split(/|/, $dta_line);
if ($xurl eq "$ThisURL") {
$final_hits = $xcount;
$newn = $threadinfo[3];
$writtingp = sprintf("%4.2f", (($newn / $final_hits) * 100));
}
}
}
else {
$final_hits = 0;
$writtingp = "0.00";
}
if ($writtingp eq "") {
$writtingp = "0.00";
}
$newpath = $ExactPath;
@info = split(///, $newpath);
print <
------------------
this hack works on 5.44?
------------------
hexa
oops, i do have 5.44a
any idea how to get this hack work
?
thanks,
chris
Yes this hack works on 5.44 because I have installed in my UBB.
------------------
does this work with 5.47d
------------------
| My Home Page | My Ubb |
YES! It works with ALL the current versions. If there is an incompatibility with any of my mods and the current ubb version, I DO update it.
------------------
great mod
------------------
What about 5.41a?
------------------
ummm...I think the quote u pulled answers that. Think about it.
------------------
i don't know what i did wrong, but the name doesn't show up shown in the link below.
http://bum.astigma.net/cgi-bin/forumdisplay.cgi?action=topics&forum=Super+Random&number=1 can anyone please help me out?
lol, ok
------------------
Dark Templar:
The link to this hack is giving me a 403: forbidden error.
http://theultimagamers.hypermart.net/ubbhacks/latestforumreply546.txt Is there a problem with that folder or file?
Me too.. no access to that.
I'm not havin' a good night!
This bugfix file is no longer accessible. Our database has been updated with the corrected file and it has been posted to the original thread:
https://www.ubbdev.com/ubb/Forum7/HTML/000026-3.html ------------------
Allen
-
http://www.stand318.com
Got it from the database, but it screws up things just the same. Cant rebuild threads after applying that hack to my 5.47 BB.
Btw, I'm just floored by your guys' UBB.. sveet.
|