#35806
01/06/2000 9:21 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
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 and right after that add Now, in each $GutsRow add right after I hope UBB won't screw up any of the code ![[Linked Image]](https://ubbdev.com/ubb/smile.gif)
|
|
|
#35807
01/06/2000 11:44 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
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]](https://ubbdev.com/ubb/frown.gif) I'll fix it today or early tomorrow.
|
|
|
#35808
01/07/2000 9:43 AM
|
Joined: Mar 2001
Posts: 69
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 69 |
kewl hack, I'll put it in my board ASAP ![[Linked Image]](https://ubbdev.com/ubb/smile.gif) ------------------ Cougar's here, so have no fear Webmaster of www.artbeast.de
|
|
|
#35809
01/08/2000 2:06 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
Ooops. I didn't think of that, since i didn't have any private forums on my UBB ![[Linked Image]](https://ubbdev.com/ubb/smile.gif) I'll take a look at it today! [This message has been edited by ilya (edited January 08, 2000).]
|
|
|
#35810
01/08/2000 3:30 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
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: ------------------ Thanks for reading! Ilya moderator of UBB Hacks Finished [This message has been edited by ilya (edited January 08, 2000).]
|
|
|
#35811
01/08/2000 6:37 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
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
|
|
|
#35812
01/08/2000 7:19 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
Here's the final code to use: in Ultimate.cgi find Right after that add Now in each cycle of $GutsRow add this: right after ------------------ 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).]
|
|
|
#35813
01/08/2000 11:05 PM
|
Joined: Jan 2000
Posts: 18
Member
|
Member
Joined: Jan 2000
Posts: 18 |
Thought that was in Ultimate.cgi ?
|
|
|
#35814
01/08/2000 11:48 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
You need to make all the changes in Ultimate.cgi
|
|
|
#35815
01/09/2000 2:40 AM
|
Joined: Jan 2000
Posts: 4
Member
|
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]](https://ubbdev.com/ubb/confused.gif)
|
|
|
#35816
01/09/2000 2:42 AM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
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]](https://ubbdev.com/ubb/smile.gif) ------------------ Thanks for reading! Ilya moderator of UBB Hacks Finished
|
|
|
#35817
01/09/2000 8:24 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
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
|
|
|
#35818
01/09/2000 3:26 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
Thanks, Troy 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
|
|
|
#35819
01/09/2000 5:55 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
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
|
|
|
#35820
01/09/2000 6:30 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
|
|
|
#35821
01/10/2000 5:29 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
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
|
|
|
#35822
01/10/2000 7:47 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
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]](https://ubbdev.com/ubb/smile.gif) ------------------ Thanks for reading! Ilya moderator of UBB Hacks Finished
|
|
|
#35823
01/10/2000 9:27 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
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
|
|
|
#35824
01/10/2000 11:31 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
Tell me if you have any luck.. ![[Linked Image]](https://ubbdev.com/ubb/smile.gif)
|
|
|
#35825
01/13/2000 4:48 PM
|
Joined: Jan 2000
Posts: 47
Junior Member
|
Junior Member
Joined: Jan 2000
Posts: 47 |
Pretty cool. ![[Linked Image]](https://ubbdev.com/ubb/smile.gif) I got it up on my forums and it's workin' smooth. ------------------ http://su.ffgamers.net Joy! A hobby that only cost me $170.
|
|
|
#35826
01/13/2000 10:55 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
BTW, has anyone tried it on freeware version? ![[Linked Image]](https://ubbdev.com/ubb/smile.gif) . I have licensed version installed ,so don't know if it woll or will not work.. Let me know, if you try. ![[Linked Image]](https://ubbdev.com/ubb/wink.gif)
|
|
|
#35827
01/13/2000 11:22 PM
|
Joined: Jan 2000
Posts: 23
Member
|
Member
Joined: Jan 2000
Posts: 23 |
Was that like a personal call to me? ![[Linked Image]](https://ubbdev.com/ubb/smile.gif) I shall try it and get back to you. ------------------ -mike Casual Players Alliance
|
|
|
#35828
01/13/2000 11:28 PM
|
Joined: Jan 2000
Posts: 23
Member
|
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]](https://ubbdev.com/ubb/smile.gif) ------------------ -mike Casual Players Alliance
|
|
|
#35829
01/15/2000 1:21 AM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
I'll try to make a version of this hack for freeware..
|
|
|
#35830
01/16/2000 2:37 AM
|
Joined: Jan 2000
Posts: 1
Junior Member
|
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.
|
|
|
#35831
01/16/2000 2:59 AM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
|
|
|
#35832
01/16/2000 4:07 AM
|
Joined: Mar 2001
Posts: 69
Junior Member
|
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]](https://ubbdev.com/ubb/wink.gif) ------------------ Cougar's here, so have no fear Webmaster of www.artbeast.de
|
|
|
#35833
01/16/2000 8:13 AM
|
Joined: Jan 2000
Posts: 19
Member
|
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
|
|
|
#35834
01/16/2000 12:59 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
That's why we now have a database of hacks ![[Linked Image]](https://ubbdev.com/ubb/biggrin.gif)
|
|
|
#35836
01/20/2000 12:45 PM
|
Joined: Jan 2000
Posts: 9
Junior Member
|
Junior Member
Joined: Jan 2000
Posts: 9 |
Neither do I. But someone does. ![[Linked Image]](https://ubbdev.com/ubb/smile.gif) Anybody want to post the code for displaying last reply in forumdisplay.cgi? Hint-Hint. Or did I miss it. ![[Linked Image]](https://ubbdev.com/ubb/frown.gif)
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
|
|
|
#35837
01/20/2000 1:58 PM
|
Joined: Jan 2000
Posts: 313
Member
|
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
|
|
|
#35838
01/21/2000 2:39 PM
|
Joined: Jan 2000
Posts: 26
Member
|
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/
|
|
|
#35839
01/21/2000 2:43 PM
|
Joined: Jan 2000
Posts: 26
Member
|
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/
|
|
|
#35840
01/21/2000 7:53 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
Actually, the forum$xthread files are created, once you add a new forum. 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.
|
|
|
#35841
01/22/2000 12:17 AM
|
Joined: Jan 2000
Posts: 26
Member
|
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/
|
|
|
#35842
01/22/2000 5:38 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 263 |
Sure. I'll post the code a bit later.
|
|
|
#35843
01/22/2000 8:02 PM
|
Joined: Jan 2000
Posts: 26
Member
|
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
|
|
|
#35844
01/25/2000 11:20 PM
|
Joined: Jun 2000
Posts: 263
Junior Member
|
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: I've not tested it yet, so please tell me if it works. It should, however ![[Linked Image]](https://ubbdev.com/ubb/biggrin.gif) ------------------ Thanks for reading! Ilya Administrator of Ubb Code Hackers Hideout Moderator of UBB Hacks Finished
|
|
|
#35845
01/26/2000 12:23 PM
|
Joined: Jan 2000
Posts: 11
Junior Member
|
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.
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|