Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
This hack just inserts the username of the member, who made the last post in particular forum..
So, in "Last post" column, Ultimate.cgi will display something like this:
05-01-2000 03:10
by ilya.
Here's the code:
in Ultimate.cgi find
Code
code:
and right after that add
Code
code:

Now, in each $GutsRow add
Code
code:
right after
Code
code:

I hope UBB won't screw up any of the code [Linked Image]

Sponsored Links
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Just found a problem with this hack. It displays a username, who posted the last TOPIC, not just message... [Linked Image]
I'll fix it today or early tomorrow.

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
kewl hack, I'll put it in my board ASAP [Linked Image]

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Quote
quote:
Ooops. I didn't think of that, since i didn't have any private forums on my UBB [Linked Image]
I'll take a look at it today!

[This message has been edited by ilya (edited January 08, 2000).]

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Ok. I think i fixed it. I tried it on my UBB, and it worked.
Here is the code that you need to insert:
Code
code:

------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished

[This message has been edited by ilya (edited January 08, 2000).]

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Can we get the final version in one post? =) Would make it easier for those just coming here to see the hack in one message.



------------------
Troy
GoL - Pacific
http://www.runhidedie.com/gol

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Here's the final code to use:
in Ultimate.cgi find
Code
code:
Right after that add
Code
code:
Now in each cycle of $GutsRow add this:
Code
code:
right after
Code
code:

------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished

[This message has been edited by ilya (edited January 09, 2000).]

[This message has been edited by ilya (edited January 09, 2000).]

Joined: Jan 2000
Posts: 18
Member
Member
Offline
Joined: Jan 2000
Posts: 18
Thought that was in Ultimate.cgi ?

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
You need to make all the changes in Ultimate.cgi

Joined: Jan 2000
Posts: 4
Member
Member
Offline
Joined: Jan 2000
Posts: 4
hrm...okay. So lemme get this straight. The changes need to be made in *BOTH* Ultimate.cgi AND ubb_library?? Or just one? I'm confused, hehe. [Linked Image]

Sponsored Links
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Damn, my bad!!
I'm having a bit of a head ache, so pardon me. All the changes need to be made in Ultimate.cgi only!
Terribly sorry. [Linked Image]

------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
The hack worked perfectly! =) Excellent job.

I noticed after I put it in though that since I only have 1 public forum and 7 others, it only shows in the one.

It doesn't matter if anyone knows who last posted anywhere, not objectionable content. Two questions:

#1 and the easy one, how do I make it appear on every board?

#2 would it be possible for you to see if they have logged in and if they have access to the board to display the info only then? I don't think this is really all that feasable since the access requests are done when you attempt to access, and well, checking access ALL the time would be a strain. So, forget it. Unless of course you can think of a way it would work good. =)

So, how can I make it display no matter what? =) thanks!



------------------
Troy
GoL - Pacific
http://www.runhidedie.com/gol

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Quote
quote:
Thanks, Troy
Quote
quote:
Ok. I reuploaded the file, and you can get the code for both versions in it. https://www.ubbdev.com/ubb/uploads/lastpostby.txt

Troy, about your second question. I'm sure it's possible to do that, but personally, i don't know how..


------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ilya, thank you! =) No problem on doing the other part of the hack, if it was something you could do, great, but I can't do it either. =) thanks again for the hacks you HAVE done though. I like the "smaller" hacks, they make a BB as well.

------------------
Troy
GoL - Pacific
http://www.runhidedie.com/gol

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Glad you like it!!

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
One more question. =)

Is this hack supposed to display the name of the last poster once you select a forum and have a listing of all the threads there?

If so, mine isn't doing it. If not, nevermind.



------------------
Troy
GoL - Pacific
http://www.runhidedie.com/gol

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
No. All it does, is displays it in Ultimate.cgi.
If you want me to add this feature, I can. Just tell me where exactly to place it [Linked Image]

------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
hehehe, I don't know where to add it, however I'll play around with the code and see if I can figure it out myself. =) thanks much!

------------------
Troy
GoL - Pacific
http://www.runhidedie.com/gol

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Tell me if you have any luck.. [Linked Image]

Joined: Jan 2000
Posts: 47
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 47
Pretty cool. [Linked Image] I got it up on my forums and it's workin' smooth.

------------------
http://su.ffgamers.net

Joy! A hobby that only cost me $170.

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
BTW, has anyone tried it on freeware version? [Linked Image].
I have licensed version installed ,so don't know if it woll or will not work..
Let me know, if you try. [Linked Image]

Joined: Jan 2000
Posts: 23
Member
Member
Offline
Joined: Jan 2000
Posts: 23
Was that like a personal call to me? [Linked Image]

I shall try it and get back to you.

------------------
-mike
Casual Players Alliance

Joined: Jan 2000
Posts: 23
Member
Member
Offline
Joined: Jan 2000
Posts: 23
Well, now that I actually went back and read the code. No, it won't work as is with the freeware version. The freeware doesn't have an OpenFile sub (of course, I wrote one, but..) and it uses the $RunOnDate.threads version, not forum$x.threads . So additional code would have to be added for that. And of course, I currently don't have the last post by hack in forumdisplay installed either. [Linked Image]


------------------
-mike
Casual Players Alliance

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
I'll try to make a version of this hack for freeware..

Joined: Jan 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 1
Could someone please post the code for "Latest reply by: xxx" hack. Thank you.

edit: nevermind. silly me. didn't search first.

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
[Linked Image]

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
LOL
hm... maybe this site should have guidlines what do do when looking for a hack, would save a lot of time [Linked Image]

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Joined: Jan 2000
Posts: 19
Member
Member
Offline
Joined: Jan 2000
Posts: 19
Here´s the freeware-hack for displaying the last user who has posted a message.

In postings.cgi find the following code:

#update last time file
&Lock("lock.file");
open (LASTTIME, ">$ForumsPath/Forum$number/lasttime.file") or die(&StandardHTML("Unable to write a Forum$number LastTime.file $!"));
print LASTTIME ("$HyphenDaten");
print LASTTIME ("$Timen");
close (LASTTIME);
&Unlock("lock.file");
chmod (0666, "$ForumsPath/Forum$number/lasttime.file");

Behind it insert:

#update last user file
&Lock("lock.file");
open (LASTUSER, ">$ForumsPath/Forum$number/lastuser.file") or die(&StandardHTML("Unable to write a Forum$number LastUser.file $!"));
print LASTUSER ("$UserNamen");
close (LASTUSER);
&Unlock("lock.file");
chmod (0666, "$ForumsPath/Forum$number/lastuser.file");

Now find:

&Lock("lock.file");
open (FORUM, ">$ForumsPath/Forum$number/$newtopicfile");
print FORUM ("$StatsLinen");
print FORUM ("$FatherLinen");
close (FORUM);
&Unlock("lock.file");
chmod (0666, "$ForumsPath/Forum$number/$newtopicfile");

Also insert the above hack behind it:

#update last user file
&Lock("lock.file");
open (LASTUSER, ">$ForumsPath/Forum$number/lastuser.file") or die(&StandardHTML("Unable to write a Forum$number LastUser.file $!"));
print LASTUSER ("$UserNamen");
close (LASTUSER);
&Unlock("lock.file");
chmod (0666, "$ForumsPath/Forum$number/lastuser.file");

Now find the following code in Ultimate.cgi:

## Get Forum Data from lastnumber.file(s)
open (FORUMDATA, "$ForumsPath/Forum$x/lastnumber.file");
my @data = ;
close (FORUMDATA);
$TotalTopics = $data[1];
chomp($TotalTopics);
$TotalPosts = $data[2];
chomp($TotalPosts);

IN FRONT OF IT insert:

## Get Forum Data from lastuser.file(s)
if (-e "$ForumsPath/Forum$x/lastuser.file") {
open (FORUMDATA, "$ForumsPath/Forum$x/lastuser.file");
my @data = ;
close (FORUMDATA);
$LastPoster = "$data[0]";
} else {
if (-e "$ForumsPath/Forum$x/lasttime.file") {
$LastPoster = "";
} else {
$LastPoster = "No postings yet.";
}
}

Now go to sub ForumsGutsHTML and search for $TheDate. Insert "$LastPoster
" in front of it.

This hack works fine with my freewareversion 2000. But should also work with the full version. Beside it should be quicker than the above hacks.



------------------
Grüße aus Deutschland / Greatings from Germany
Leisure Larry

Homepage: Catan & Stonehedge - Multiplayerz vs. HTML

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Quote
quote:

That's why we now have a database of hacks [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Umm the database is up at http://database.ubbcodehacking.com Try there!

------------------
President and Webmaster of UBB Hackers Hideout.

ICQ: 33326211
AIM:SpazJCC
Email: ubbmaster@ubbcodehacking.com

Joined: Jan 2000
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 9
Quote
quote:
Neither do I. But someone does. [Linked Image] Anybody want to post the code for displaying last reply in forumdisplay.cgi? Hint-Hint.

Or did I miss it. [Linked Image]


It is easy in the world to live after the world's opinions;
it is easy in solitude to live after one's own.
But the great man is he who in the midst of the crowd
keeps with perfect sweetness the independence of solitude.

-- Emerson
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
That was mine originally. A lot of people had trouble installing it, but it works fine for me on 5.39b. I'm not sure if anything would need to be altered to work in the later versions. Here is the link to hack on the Scriptkeeper board. The hack is actually in two different places depending on where you want the last username to link to.
http://www.scriptkeeper.com/ubb/Forum14/HTML/002790.html

Actually if you give me about 20 minutes I'll post the hack in a txt. file that will be easier to understand. I'll just create a new thread here for it.

------------------
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Moderator
http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi

Joined: Jan 2000
Posts: 26
Member
Member
Offline
Joined: Jan 2000
Posts: 26
OK, real nice hack! i like it. But if I dont have any post yet in a particular catogorie it just puts by: with no username and looks kinds tacky. Can i get rid of this somehow? Im using 5.43 if it matters.

Thanks,

------------------
Chris Miller
http://www.webtrixter.com/

Joined: Jan 2000
Posts: 26
Member
Member
Offline
Joined: Jan 2000
Posts: 26
im not real familar with cgi but i noticed you are opening the x.threads file. This file is not created unless someone has posted befor. Maybe this is my problem?

Thanks,

------------------
Chris Miller
http://www.webtrixter.com/

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Actually, the forum$xthread files are created, once you add a new forum.

Quote
quote:
Hmmm. It should work fine, since I'm checking, whether there is anything in the file or not. It works fine for me..
You can contact me by ICQ, and I'll help you.

Joined: Jan 2000
Posts: 26
Member
Member
Offline
Joined: Jan 2000
Posts: 26
I figured out my problem. I was trying to make it a link to the users profile and that was messing things up. Can you help me do this?

Thanks,

------------------
Chris Miller
http://www.webtrixter.com/

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Sure.
I'll post the code a bit later.

Joined: Jan 2000
Posts: 26
Member
Member
Offline
Joined: Jan 2000
Posts: 26
cool, thanks! I really like the hack I think the link is the only thing its missing.

Thanks again

~RageAgnst

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Ok
Sorry that I haven't replied before.
Here's th code to use to create a link to user's profile:
Code
code:
I've not tested it yet, so please tell me if it works. It should, however [Linked Image]

------------------
Thanks for reading!
Ilya
Administrator of Ubb Code Hackers Hideout
Moderator of UBB Hacks Finished

Joined: Jan 2000
Posts: 11
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 11
Ummm, a question.

I test it in 5.39c and it will display in private and public section. However, in 5.43a. It won't display in private section. Is that 5.43a have a tight security to block this? Thanks a million.

Page 1 of 3 1 2 3

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
Posts: 70
Joined: January 2007
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
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)