Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Sponsored Links
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Mar 2000
Posts: 50
Member
Member
Offline
Joined: Mar 2000
Posts: 50
Ah thanks a bunch!

Sponsored Links
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Oct 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 7
Where can I find the code where it works in 5.45c?

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
This does work in 5.45...

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.
Read my BIO in the team link!

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Yeah, there's no real reason why it shouldn't work in any version of 5.45.

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


-DT
Joined: Oct 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 1
Hey!!

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

What can i do?

thx

@+

Sponsored Links
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Oct 2000
Posts: 6
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 6
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

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
That add-on ONLY works on MY hack.

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


-DT
Joined: Oct 2000
Posts: 6
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 6
and when i can found this add on for private forum ??

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
There IS NO addon for a private forum, at least not yet. I still have to make it.

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


-DT
Joined: Oct 2000
Posts: 6
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 6
we can expect to see this add on for next month ??

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
You can expect the add-on tonight or tomorow.

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


-DT
Joined: Oct 2000
Posts: 6
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 6
Great news ....thanks you dark templar

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
Well when you do, I'm installing this mod straight away. Good work!

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Oct 2000
Posts: 6
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 6
The links doesnt works ..

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Ooops!
http://theultimagamers.hypermart.net/ubbhacks/latestforumreply546.txt

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

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


-DT
Joined: Oct 2000
Posts: 6
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 6
A great hack
thanks to you , to slurpee and all other people who contribute to this hack ..
For a better UBB .. thanks

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
You're welcome.

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


-DT
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
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

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
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

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Ok, I'm glad you got it all figured out now.

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


-DT
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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 wavey
- What Drives You?
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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].

------------------


-DT


------------------

Joined: Sep 2000
Posts: 441
Member
Member
Offline
Joined: Sep 2000
Posts: 441
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 <
Joined: Dec 2000
Posts: 10
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 10
this hack works on 5.44?

------------------
hexa


hexa
Joined: Sep 2000
Posts: 441
Member
Member
Offline
Joined: Sep 2000
Posts: 441
oops, i do have 5.44a smirk
any idea how to get this hack work smirk ?
thanks,
chris

Joined: Sep 2000
Posts: 1,304
Addict
Addict
Offline
Joined: Sep 2000
Posts: 1,304
Yes this hack works on 5.44 because I have installed in my UBB.

------------------

Joined: Aug 2000
Posts: 106
Member
Member
Offline
Joined: Aug 2000
Posts: 106
does this work with 5.47d

------------------
| My Home Page | My Ubb |

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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.

------------------


-DT
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
great mod

------------------

Joined: Sep 2000
Posts: 221
Member
Member
Offline
Joined: Sep 2000
Posts: 221
Quote
quote:

What about 5.41a?


------------------


This is the designed behavior.
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
ummm...I think the quote u pulled answers that. Think about it.

------------------


-DT
Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)