UBB.Dev
I am currently writing a mod to do just that, loosely based on Slurpee's, with mostly my own coding. Expect it in the next week.

Your prayers will shortly be answered...

------------------
--Dark Templar
Ok, it's all written! Works flawless on mine, so I'm releasing it as a finished Mod.
http://theultimagamers.hypermart.net/ubbhacks/latestforumreply546.txt

Major thanks to Slurpee for the ubb_library.pl coding.

Note that this only lets you link to the user's latest post, and not their profile. Next release probably will include it.

------------------
--Dark Templar
whoops, I just discovered the ONLY bug in it-if it is a multiple page post, it doesn't go to the second page. A minor fix, it will be done soon.

------------------
--Dark Templar
OK! I got all the code ironed out. The link now is to the new version, v1.5.

Thanks again to Slurpee, I tweaked another little bit of his coding and now it works perfectly.

This works on my 5.46, and should work on all of yours.

------------------
--Dark Templar

UPDATE!!! It is now version 1.5.1; I changed the size of the latest reply text in forumdisplay.cgi and removed an extra tag.

This message has been edited by Dark Templar on October 08, 2000 at 09:02 PM
Ah thanks a bunch!
No problem; I needed this hack myself, that's why I worked on it.

UPDATE!!!
Version 1.5.2-Fixed some minor directions changes; The end wasn't clear that after you uploaded and chmodded, you had to rebuild your forum files via general controls, and then you had to update threads.

UPDATE AGAIN!!! Version 1.5.3 now gives explicit directions for if you use MasterMind's Anchor hack.

------------------
--Dark Templar

This message has been edited by Dark Templar on October 09, 2000 at 02:17 PM
Where can I find the code where it works in 5.45c?
This does work in 5.45...

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.
Read my BIO in the team link!
Yeah, there's no real reason why it shouldn't work in any version of 5.45.

------------------
--Dark Templar
Hey!!

Your hack work great in public forum... But in my Private forum, dont't work...

What can i do?

thx

@+
At this point it doesn't work in private forums. I'll see what I can do to make a private forums addon.

------------------
--Dark Templar
Ok, I just wrote an addon to this Mod so that after the "Latest reply by:" part, it will link to the person's profile instead of the actual post.

To link to the member's bios-

In forumdisplay.cgi, find:
Code
code:

REPLACE it with:
Code
code:

That should do it. I didn't publish that formally before because I personally like to make the latest reply link to the post. I'll add it to the next version of my Mod.

------------------
--Dark Templar

This message has been edited by Dark Templar on October 14, 2000 at 10:59 AM
When do you do the add for the private forum ...
The name of the author don't appear in private forum..
I hope you can do this ...
Your add could works with all version of the lastusername mods ??
Thanks
That add-on ONLY works on MY hack.

------------------
--Dark Templar
and when i can found this add on for private forum ??
There IS NO addon for a private forum, at least not yet. I still have to make it.

------------------
--Dark Templar
we can expect to see this add on for next month ??
You can expect the add-on tonight or tomorow.

------------------
--Dark Templar
Great news ....thanks you dark templar
After a couple hours of working on the coding, testing, and the like, I have half of the private forum add-on working. It'll be a little longer than I thought at first; I am having trouble finding just the right variable for it.

------------------
--Dark Templar
Posted By: Ell Re: Latest reply by Username in forumdisplay 5.46 - 10/23/2000 9:25 PM
Well when you do, I'm installing this mod straight away. Good work!
Alrighty. Since it works flawlessly now, in private forums and not, I have decided to release it as version 3.0.
http://theultimagamers.hypermert.net/ubbhacks/latestforumreply546.txt

It works on 5.46+ guaranteed, and it should work on prior versions.

------------------
--Dark Templar

Imporant note! Remove and redo ALL of the forumdisplay.cgi coding for this hack if you are updating from a previous version of this! Also, if you are upgrading from Slurpee's version, remove all of the coding from it, and install mine.

This message has been edited by Dark Templar on October 24, 2000 at 09:13 AM
The links doesnt works ..
Ooops!
http://theultimagamers.hypermart.net/ubbhacks/latestforumreply546.txt

I will also edit the older post so it shows this link.

------------------
--Dark Templar
A great hack
thanks to you , to slurpee and all other people who contribute to this hack ..
For a better UBB .. thanks
You're welcome.

------------------
--Dark Templar
hey, dark templar...

im totally loving this mod. great job!

i have a question about it, tho... i worked it into my boards, but, for some reason, the last post bit doesnt appear on the main forum page (the category listing), just the level below that.

what'd i do wrong?

here's my boards:
http://www.robkamphausen.com/cgi-bin/Ultimate.cgi?action=intro

------------------
i have spoken
www.robkamphausen.com
nope. nevermind. me am not smart.

got it working now (didnt realize there wuz a different between "last post" and "last reply")

my bad!! STILL a kick ass hack, tho. thanks fer it! and...i guess, consider the above just an advertisement to my site [Linked Image]

------------------
i have spoken
www.robkamphausen.com
Ok, I'm glad you got it all figured out now.

------------------
--Dark Templar
I am doing something wrong here... when I add this to 5.47b, I get a "cut-off" forumdisplay.cgi. Everything below the "Topic Topic Starter Replies Last Post" table at the top of forumdisplay is completely cut off. I upload a forumdisplay with the changes and it's fine....

Any ideas? I am pretty sure I have made the changes correctly as instructed, there's aren't that many...[Linked Image]

------------------
Allen

- http://www.stand318.com
Allen...go on ICQ and I'll talk to you through there [Linked Image]. It's probably something so simple it was overlooked [Linked Image].

------------------
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 smirk
any idea how to get this hack work smirk ?
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

------------------
Quote
quote:

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?
nevermind. i fixed it.
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?
Posted By: CL Re: Latest reply by Username in forumdisplay 5.46 - 01/14/2001 10:32 AM
Me too.. no access to that. smirk

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
Posted By: CL Re: Latest reply by Username in forumdisplay 5.46 - 01/16/2001 7:34 AM
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. smirk

Btw, I'm just floored by your guys' UBB.. sveet. [Linked Image]
© UBB.Developers