php forum
php mysql forum
php mysql smarty
 
Page 1 of 5 1 2 3 4 5 >
Topic Options
#35806 - 01/06/00 08:21 PM Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35807 - 01/06/00 10:44 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Just found a problem with this hack. It displays a username, who posted the last TOPIC, not just message...
I'll fix it today or early tomorrow.
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35808 - 01/07/00 08:43 AM Re: Last Post By" in *Ultimate.cgi*!
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
kewl hack, I'll put it in my board ASAP

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

Top
#35809 - 01/08/00 01:06 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Quote:
quote:

Ooops. I didn't think of that, since i didn't have any private forums on my UBB
I'll take a look at it today!

[This message has been edited by ilya (edited January 08, 2000).]
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35810 - 01/08/00 02:30 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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).]
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35811 - 01/08/00 05:37 PM Re: Last Post By" in *Ultimate.cgi*!
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#35812 - 01/08/00 06:19 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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).]
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35813 - 01/08/00 10:05 PM Re: Last Post By" in *Ultimate.cgi*!
Highlander Offline
Member

Registered: 01/08/00
Posts: 35
Thought that was in Ultimate.cgi ?

Top
#35814 - 01/08/00 10:48 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
You need to make all the changes in Ultimate.cgi
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35815 - 01/09/00 01:40 AM Re: Last Post By" in *Ultimate.cgi*!
muted girl Offline
Member

Registered: 01/09/00
Posts: 32
Loc: pa, usa
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.

Top
#35816 - 01/09/00 01:42 AM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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.

------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35817 - 01/09/00 07:24 AM Re: Last Post By" in *Ultimate.cgi*!
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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. <G> 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

Top
#35818 - 01/09/00 02:26 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Quote:
quote:

Thanks, Troy
Quote:
quote:

Ok. I reuploaded the file, and you can get the code for both versions in it. http://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
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35819 - 01/09/00 04:55 PM Re: Last Post By" in *Ultimate.cgi*!
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#35820 - 01/09/00 05:30 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Glad you like it!!
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35821 - 01/10/00 04:29 PM Re: Last Post By" in *Ultimate.cgi*!
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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. <G>



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

Top
#35822 - 01/10/00 06:47 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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

------------------
Thanks for reading!
Ilya
moderator of UBB Hacks Finished
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35823 - 01/10/00 08:27 PM Re: Last Post By" in *Ultimate.cgi*!
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#35824 - 01/10/00 10:31 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Tell me if you have any luck..
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35825 - 01/13/00 03:48 PM Re: Last Post By" in *Ultimate.cgi*!
Sir Nikon Offline
Junior Member

Registered: 01/03/00
Posts: 400
Pretty cool. I got it up on my forums and it's workin' smooth.

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

Joy! A hobby that only cost me $170.

Top
#35826 - 01/13/00 09:55 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
BTW, has anyone tried it on freeware version? .
I have licensed version installed ,so don't know if it woll or will not work..
Let me know, if you try.
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35827 - 01/13/00 10:22 PM Re: Last Post By" in *Ultimate.cgi*!
Ed Sullivan Offline
Member

Registered: 01/04/00
Posts: 130
Loc: Allentown, PA
Was that like a personal call to me?

I shall try it and get back to you.

------------------
-mike
Casual Players Alliance
_________________________
-mike
Casual Players Alliance - And that freeware UBB. smile

Top
#35828 - 01/13/00 10:28 PM Re: Last Post By" in *Ultimate.cgi*!
Ed Sullivan Offline
Member

Registered: 01/04/00
Posts: 130
Loc: Allentown, PA
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.


------------------
-mike
Casual Players Alliance
_________________________
-mike
Casual Players Alliance - And that freeware UBB. smile

Top
#35829 - 01/15/00 12:21 AM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
I'll try to make a version of this hack for freeware..
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35830 - 01/16/00 01:37 AM Re: Last Post By" in *Ultimate.cgi*!
TransZamboni Offline
Junior Member

Registered: 01/16/00
Posts: 1
Could someone please post the code for "Latest reply by: xxx" hack. Thank you.

edit: nevermind. silly me. didn't search first.
_________________________
www.sexthreads.com

Top
#35831 - 01/16/00 01:59 AM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35832 - 01/16/00 03:07 AM Re: Last Post By" in *Ultimate.cgi*!
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
LOL
hm... maybe this site should have guidlines what do do when looking for a hack, would save a lot of time

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

Top
#35833 - 01/16/00 07:13 AM Re: Last Post By" in *Ultimate.cgi*!
Leisure.Larry Offline
Member

Registered: 01/13/00
Posts: 103
Loc: NRW, Germany
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 = <FORUMDATA>;
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 = <FORUMDATA>;
close (FORUMDATA);
$LastPoster = "<B>$data[0]</B>";
} 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
_________________________
Grüße aus Deutschland / Greatings from Germany
Leisure Larry

Homepage: Catan & Stonehedge - Multiplayerz vs. HTML
UBB: ALLinONE , the german UBB for Freeware-Hacks

Top
#35834 - 01/16/00 11:59 AM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Quote:
quote:



That's why we now have a database of hacks
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35835 - 01/16/00 04:40 PM Re: Last Post By" in *Ultimate.cgi*!
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#35836 - 01/20/00 11:45 AM Re: Last Post By" in *Ultimate.cgi*!
ChanFan Offline
Junior Member

Registered: 01/18/00
Posts: 15
Loc: Charlotte, NC USA
Quote:
quote:


Neither do I. But someone does. Anybody want to post the code for displaying last reply in forumdisplay.cgi? Hint-Hint.

Or did I miss it.
_________________________
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

Top
#35837 - 01/20/00 12:58 PM Re: Last Post By" in *Ultimate.cgi*!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
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
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#35838 - 01/21/00 01:39 PM Re: Last Post By" in *Ultimate.cgi*!
RageAgnst Offline
Member

Registered: 01/21/00
Posts: 32
Loc: Saint Louis, Missouri - USA
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/
_________________________
Chris Miller
http://www.webtrixter.com/

Top
#35839 - 01/21/00 01:43 PM Re: Last Post By" in *Ultimate.cgi*!
RageAgnst Offline
Member

Registered: 01/21/00
Posts: 32
Loc: Saint Louis, Missouri - USA
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/
_________________________
Chris Miller
http://www.webtrixter.com/

Top
#35840 - 01/21/00 06:53 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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.
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35841 - 01/21/00 11:17 PM Re: Last Post By" in *Ultimate.cgi*!
RageAgnst Offline
Member

Registered: 01/21/00
Posts: 32
Loc: Saint Louis, Missouri - USA
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/
_________________________
Chris Miller
http://www.webtrixter.com/

Top
#35842 - 01/22/00 04:38 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Sure.
I'll post the code a bit later.
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35843 - 01/22/00 07:02 PM Re: Last Post By" in *Ultimate.cgi*!
RageAgnst Offline
Member

Registered: 01/21/00
Posts: 32
Loc: Saint Louis, Missouri - USA
cool, thanks! I really like the hack I think the link is the only thing its missing.

Thanks again

~RageAgnst
_________________________
Chris Miller
http://www.webtrixter.com/

Top
#35844 - 01/25/00 10:20 PM Re: Last Post By" in *Ultimate.cgi*!
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
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

------------------
Thanks for reading!
Ilya
Administrator of Ubb Code Hackers Hideout
Moderator of UBB Hacks Finished
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35845 - 01/26/00 11:23 AM Re: Last Post By" in *Ultimate.cgi*!
Rosemyths Offline
Junior Member

Registered: 01/11/00
Posts: 13
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.

Top
#35846 - 01/26/00 05:13 PM Re: Last Post By" in *Ultimate.cgi*!
Rosemyths Offline
Junior Member

Registered: 01/11/00
Posts: 13
Quote:
quote:


ilya : forget my post. I use your coding and it work in 5.43a. Thanks a million.

Top