Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Last Post By" in *Ultimate.cgi*!
#35806 01/06/2000 9:21 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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
Re: Last Post By" in *Ultimate.cgi*!
#35807 01/06/2000 11:44 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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.

Re: Last Post By" in *Ultimate.cgi*!
#35808 01/07/2000 9:43 AM
Joined: Mar 2001
Posts: 69
Junior Member
Offline
Junior Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35809 01/08/2000 2:06 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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).]

Re: Last Post By" in *Ultimate.cgi*!
#35810 01/08/2000 3:30 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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
Re: Last Post By" in *Ultimate.cgi*!
#35811 01/08/2000 6:37 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Offline
Moderator
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

Re: Last Post By" in *Ultimate.cgi*!
#35812 01/08/2000 7:19 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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).]

Re: Last Post By" in *Ultimate.cgi*!
#35813 01/08/2000 11:05 PM
Joined: Jan 2000
Posts: 18
Member
Offline
Member
Joined: Jan 2000
Posts: 18
Thought that was in Ultimate.cgi ?

Re: Last Post By" in *Ultimate.cgi*!
#35814 01/08/2000 11:48 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
You need to make all the changes in Ultimate.cgi

Re: Last Post By" in *Ultimate.cgi*!
#35815 01/09/2000 2:40 AM
Joined: Jan 2000
Posts: 4
Member
Offline
Member
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
Re: Last Post By" in *Ultimate.cgi*!
#35816 01/09/2000 2:42 AM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35817 01/09/2000 8:24 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Offline
Moderator
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

Re: Last Post By" in *Ultimate.cgi*!
#35818 01/09/2000 3:26 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35819 01/09/2000 5:55 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Offline
Moderator
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

Re: Last Post By" in *Ultimate.cgi*!
#35820 01/09/2000 6:30 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
Glad you like it!!

Re: Last Post By" in *Ultimate.cgi*!
#35821 01/10/2000 5:29 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Offline
Moderator
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

Re: Last Post By" in *Ultimate.cgi*!
#35822 01/10/2000 7:47 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35823 01/10/2000 9:27 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Offline
Moderator
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

Re: Last Post By" in *Ultimate.cgi*!
#35824 01/10/2000 11:31 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
Tell me if you have any luck.. [Linked Image]

Re: Last Post By" in *Ultimate.cgi*!
#35825 01/13/2000 4:48 PM
Joined: Jan 2000
Posts: 47
Junior Member
Offline
Junior Member
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.

Re: Last Post By" in *Ultimate.cgi*!
#35826 01/13/2000 10:55 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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]

Re: Last Post By" in *Ultimate.cgi*!
#35827 01/13/2000 11:22 PM
Joined: Jan 2000
Posts: 23
Member
Offline
Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35828 01/13/2000 11:28 PM
Joined: Jan 2000
Posts: 23
Member
Offline
Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35829 01/15/2000 1:21 AM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
I'll try to make a version of this hack for freeware..

Re: Last Post By" in *Ultimate.cgi*!
#35830 01/16/2000 2:37 AM
Joined: Jan 2000
Posts: 1
Junior Member
Offline
Junior Member
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.

Re: Last Post By" in *Ultimate.cgi*!
#35831 01/16/2000 2:59 AM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
[Linked Image]

Re: Last Post By" in *Ultimate.cgi*!
#35832 01/16/2000 4:07 AM
Joined: Mar 2001
Posts: 69
Junior Member
Offline
Junior Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35833 01/16/2000 8:13 AM
Joined: Jan 2000
Posts: 19
Member
Offline
Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35834 01/16/2000 12:59 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
Quote
quote:

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

Re: Last Post By" in *Ultimate.cgi*!
#35835 01/16/2000 5:40 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Offline
Moderator
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

Re: Last Post By" in *Ultimate.cgi*!
#35836 01/20/2000 12:45 PM
Joined: Jan 2000
Posts: 9
Junior Member
Offline
Junior Member
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
Re: Last Post By" in *Ultimate.cgi*!
#35837 01/20/2000 1:58 PM
Joined: Jan 2000
Posts: 313
Member
Offline
Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35838 01/21/2000 2:39 PM
Joined: Jan 2000
Posts: 26
Member
Offline
Member
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/

Re: Last Post By" in *Ultimate.cgi*!
#35839 01/21/2000 2:43 PM
Joined: Jan 2000
Posts: 26
Member
Offline
Member
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/

Re: Last Post By" in *Ultimate.cgi*!
#35840 01/21/2000 7:53 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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.

Re: Last Post By" in *Ultimate.cgi*!
#35841 01/22/2000 12:17 AM
Joined: Jan 2000
Posts: 26
Member
Offline
Member
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/

Re: Last Post By" in *Ultimate.cgi*!
#35842 01/22/2000 5:38 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
Joined: Jun 2000
Posts: 263
Sure.
I'll post the code a bit later.

Re: Last Post By" in *Ultimate.cgi*!
#35843 01/22/2000 8:02 PM
Joined: Jan 2000
Posts: 26
Member
Offline
Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35844 01/25/2000 11:20 PM
Joined: Jun 2000
Posts: 263
ilya Offline OP
Junior Member
OP Offline
Junior Member
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

Re: Last Post By" in *Ultimate.cgi*!
#35845 01/26/2000 12:23 PM
Joined: Jan 2000
Posts: 11
Junior Member
Offline
Junior Member
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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,543
Posts293,774
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 286
Topics Created 0
Posts Made 0
Users Online 0
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
isaac 1
Top Likes Received
isaac 39
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200618.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.096s Queries: 95 (0.038s) Memory: 3.6428 MB (Peak: 4.0788 MB) Data Comp: Zlib Server Time: 2020-07-05 11:26:42 UTC
Valid HTML 5 and Valid CSS