php forum
php mysql forum
php mysql smarty
 
Page 1 of 4 1 2 3 4 >
Topic Options
#36054 - 01/20/00 01:41 PM *Last Username To Post* in forumdisplay.cgi
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Well a lot of people have asked for this hack, and while some had problems installing it, most seem to have it working fine. I wrote the code for 5.39b, but it should work on later versions with minimal or no changes. I've created a text file with the directions, follow the CAREFULLY as this hack can get very involved and confusing if you don't watch what you're doing. As always, remember to back-up your files first!
http://www.vhlinks.com/pages/lastusername.txt

------------------
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
#36055 - 01/20/00 03:47 PM Re: *Last Username To Post* in forumdisplay.cgi
Bring In The Geek Offline
Member

Registered: 01/06/00
Posts: 111
How does this differ from your hack that you posted here?
http://www.scriptkeeper.com/ubb/Forum14/HTML/002770.html

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it!!
_________________________
When you sin, you don't fall FROM God's grace, you fall INTO it.

Bring In The Geek Consulting Services

Top
#36056 - 01/20/00 03:56 PM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I looks like he just converted it into a text file.

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

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

Top
#36057 - 01/21/00 09:41 AM Re: *Last Username To Post* in forumdisplay.cgi
ChanFan Offline
Junior Member

Registered: 01/18/00
Posts: 15
Loc: Charlotte, NC USA
Thanks, Slurpee. This post will be much easier to find, I think.

Incidentally, after uploading the changes, I didn't think it was working for me. I updated threads, reindexed and the username doesn't show up for prior posts. New posts, on the other hand, do.

------------------
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
_________________________
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
#36058 - 01/21/00 10:43 AM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Are you sure it has replys after the post. If not then you have to post a reply to get it to work.

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

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

Top
#36059 - 01/21/00 11:11 AM Re: *Last Username To Post* in forumdisplay.cgi
ChanFan Offline
Junior Member

Registered: 01/18/00
Posts: 15
Loc: Charlotte, NC USA
Yes. In fact, one of them has 15.

--------

Update: If you have this problem, you may need to set General Settings with update thread count/time turned on more than once. That seems to be all it was.

Txs, again, Slurpee!
_________________________
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
#36060 - 02/02/00 09:25 AM Re: *Last Username To Post* in forumdisplay.cgi
ChanFan Offline
Junior Member

Registered: 01/18/00
Posts: 15
Loc: Charlotte, NC USA
Slurpee, I have a question. I'm using the latest version of your hack, and as far as the first few threads on the forumdisplay page are concerned, the link to post option works just fine.

Down the list, however, nos. are being added to the filename as if there were more than one page to the thread. For example: At http://www.babygiftset.com/cgi-bin/UltBB...!&number=20 the link to cali's post on the top thread is fine. But the link to Sarah H's (and all thereafter) have the extra number (000043-3.html#Sarah+H02-01-200012:27 PM). As the posts move down, this number is added, increasing by an integer of 1. So only the first few link to the post correctly.

Can you help me with this? I've triple-checked the code. Someone else is having this problem as well ( http://www.scriptkeeper.com/ubb/Forum22/HTML/002448.html ). But things seem to get lost much easier on Scriptkeeper's forums.
_________________________
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
#36061 - 02/03/00 03:04 PM Re: *Last Username To Post* in forumdisplay.cgi
SalaTar Offline
Junior Member

Registered: 02/03/00
Posts: 13
Loc: Florida
Hate to say it but....Ditto http://www.mrcs.net/board/mrcubb/cgi-bin/Ultimate.cgi?action=intro
First 2 are fine after that its a file not found
_________________________
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box

Top
#36062 - 02/03/00 04:08 PM Re: *Last Username To Post* in forumdisplay.cgi
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Hmmm....guys try changing this line in forumdisplay.cgi:

if ($thesetotal > 0) {

to

if ($thesetotal > 1) {

See what happens.

------------------
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
#36063 - 02/03/00 04:51 PM Re: *Last Username To Post* in forumdisplay.cgi
SalaTar Offline
Junior Member

Registered: 02/03/00
Posts: 13
Loc: Florida
Nope....hmmmm


The link that works:http://www.mrcs.net/board/mrcubb/ubb/Forum1/HTML/000119.html#kec95February 02, 200012:07 AM

The ones that dont: http://www.mrcs.net/board/mrcubb/ubb/Forum1/HTML/000117-2.html#PhixionFebruary 01, 200008:50 PM
_________________________
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box

Top
#36064 - 02/03/00 06:37 PM Re: *Last Username To Post* in forumdisplay.cgi
SalaTar Offline
Junior Member

Registered: 02/03/00
Posts: 13
Loc: Florida
Btw..The change made the first one not link...
Oh well I guess it wont work on 5.43?
Great hack though,Cant wait to get the bugs out
_________________________
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box

Top
#36065 - 02/03/00 08:20 PM Re: *Last Username To Post* in forumdisplay.cgi
SalaTar Offline
Junior Member

Registered: 02/03/00
Posts: 13
Loc: Florida
for (my $i=2; $i< $thesetotal; $i++){

Changed this to:

for (my $i=20; $i< $thesetotal; $i++){

in forumdisplay.cgi
And it now works To guess what ???the 20th thread
_________________________
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box

Top
#36066 - 02/03/00 08:27 PM Re: *Last Username To Post* in forumdisplay.cgi
SalaTar Offline
Junior Member

Registered: 02/03/00
Posts: 13
Loc: Florida
One evil issue though.....
If the threads are more than one page, Its killing the cpu looking for the last post...
_________________________
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box

Top
#36067 - 02/04/00 09:23 AM Re: *Last Username To Post* in forumdisplay.cgi
ChanFan Offline
Junior Member

Registered: 01/18/00
Posts: 15
Loc: Charlotte, NC USA
Same here. *Sigh* Oh, well. I've unlinked the name for the time being. But this would be a cool trick, if I could figure out how to get it working.

Great hack. It should be included in the next version of the board.
_________________________
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
#36068 - 02/11/00 10:58 PM Re: *Last Username To Post* in forumdisplay.cgi
SalaTar Offline
Junior Member

Registered: 02/03/00
Posts: 13
Loc: Florida
You ever get it Chan?

------------------
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box
_________________________
SalaTar Admin of
www.mrcs.net
Home of the free Linux Box

Top
#36069 - 02/14/00 02:07 PM Re: *Last Username To Post* in forumdisplay.cgi
The Rock Offline
Junior Member

Registered: 01/21/00
Posts: 15
I am having the same problem, just the first 2 posts are working fine but than it add the extra integer by 1 in every post and than quit working. Has anyone figure this out yet
The Rock

Top
#36070 - 02/16/00 07:14 PM Re: *Last Username To Post* in forumdisplay.cgi
The Rock Offline
Junior Member

Registered: 01/21/00
Posts: 15
Come on people, someone can answer and make this version bug free. Thanks
The Rock

Top
#36071 - 02/17/00 04:36 PM Re: *Last Username To Post* in forumdisplay.cgi
The Rock Offline
Junior Member

Registered: 01/21/00
Posts: 15
I can not beleive this. This forum itself is using this and no one is telling me the fix for this code

Top
#36072 - 03/14/00 10:25 AM Re: *Last Username To Post* in forumdisplay.cgi
connected Offline
Member

Registered: 02/01/00
Posts: 52
Loc: Germany
I think exactly as TheRock....

this version doesn`t work for ubb 5.44a but this board itself has ist... so please post the code here.....

thx

Top
#36073 - 03/16/00 06:56 AM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I added this hack, under the assumption that I am better than everyone else and it would work magically(just kidding)! Well, I have the same problem as everyone else.

So, any idea what is wrong?

------------------
Troy(Trekkan)
RPG-Files Webmaster & Owner
http://www.rpg-files.com

Top
#36074 - 03/18/00 11:18 PM Re: *Last Username To Post* in forumdisplay.cgi
hunter Offline
Member

Registered: 03/17/00
Posts: 39
Slurpee -

I am trying to add this hack but in ubb-libary you are calling to find chomp($checkit[7]);. but in my copy version 5.38c. I don't have any thing like that.

This is where I stopped just due to this.

Please help.

Jerry

Top
#36075 - 03/19/00 09:37 AM Re: *Last Username To Post* in forumdisplay.cgi
Tim Offline
Junior Member

Registered: 02/13/00
Posts: 2
What´s about this hack in later ubb versions? It don´t work in privat areas.

Top
#36076 - 03/19/00 05:28 PM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Well i just wanted to say i upgraded to 5.44b
and put this hack in with no problems. I have it linked to the profile. That may make a differenceas to why people are having problems. Wanted to say thanks for the hardwork of making this hack.

Matt

Top
#36077 - 03/19/00 08:05 PM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I am using 5.44a, without the profile linking. No luck...

------------------
Troy(Trekkan)
RPG-Files Webmaster & Owner
http://www.rpg-files.com

Top
#36078 - 03/19/00 09:16 PM Re: *Last Username To Post* in forumdisplay.cgi
kookie Offline
Junior Member

Registered: 03/05/00
Posts: 12
how do you make it work in private forums?

Top
#36079 - 03/20/00 03:21 AM Re: *Last Username To Post* in forumdisplay.cgi
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
I'm using this hack in 5.43d (taken from the database) and it works fine. My advice for those of you who can't get it to work is: Try reinstalling it.

Just a thought
_________________________
http://www.iamcal.com

Top
#36080 - 03/21/00 02:11 PM Re: *Last Username To Post* in forumdisplay.cgi
Donnyroe Offline
Junior Member

Registered: 01/06/00
Posts: 14
problem, when i try to update threads in the general variables area and check that option you say to check it wont go through the process of updating the threads, it goes to forum 1 them goes to a blank page next. I don't understand what is wrong at all.
_________________________
Sometimes being dead to someone is a good thing.

Top
#36081 - 03/22/00 09:47 AM Re: *Last Username To Post* in forumdisplay.cgi
hunter Offline
Member

Registered: 03/17/00
Posts: 39
Still looking for help on installing this in version 5.38c.

I do not have the line chomp($checkit[7]);
but what I have is:
if ($checkit[6] =~ /N/) {
$AddN = "N";
} else {
$AddN = "";
}
if ($checkit[1] eq "$threadnum") {
if ($openclose eq "open") {
$checkit[6] = "$AddN";
} else {
$checkit[6] = "X$AddN";
}
$newline = join("|^|", @checkit);
push(@theupdatedts, $newline);
} else {
push(@theupdatedts, $checkthis);
}
} # end foreach @threadsum


Could someone help with this?

hunter

Top
#36082 - 03/22/00 11:49 AM Re: *Last Username To Post* in forumdisplay.cgi
Mikal Offline
Junior Member

Registered: 03/14/00
Posts: 23
I feel so cool. I got this hack to work the first time (well, after i remembered to change the permissions on the files after uploading them). Thanks for a great hack with easy instructions.
_________________________
Eagles may soar, but weasels don't get sucked into jet engines.

Top
#36083 - 03/22/00 01:11 PM Re: *Last Username To Post* in forumdisplay.cgi
hunter Offline
Member

Registered: 03/17/00
Posts: 39
Okay since no help has been forth coming I have been playing around with it myself.

below
foreach $checkthis(@threadsum) {
chomp($checkthis);


I added the chomp($checkit[8]);

But changed it to chomp($checkit[7]);

then in in forumdisplay I changed:
$lastAuthName = qq(<A HREF="$CGIURL/ubbmisc.cgi?action=getbio&UserName=$threadinfo[8]" target=_new> );
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;


to
$lastAuthName = qq(<A HREF="$CGIURL/ubbmisc.cgi?action=getbio&UserName=$threadinfo[7]" target=_new> );
$lastName = $threadinfo[7];
$lastName =~ tr/+/ /;


It's working.

hunter

Top
#36084 - 03/23/00 12:04 PM Re: *Last Username To Post* in forumdisplay.cgi
Mikal Offline
Junior Member

Registered: 03/14/00
Posts: 23
Hmmm...just noticed something - dont know if its a problem or not. I have the last user to post listed for each topic, which is great - that's working, along with the link to the post.. However. Last user to post is NOT displaying for the forums as a whole (on the main page). Did I do something wrong, or is that a different hack completely?
_________________________
Eagles may soar, but weasels don't get sucked into jet engines.

Top
#36085 - 03/23/00 02:45 PM Re: *Last Username To Post* in forumdisplay.cgi
hunter Offline
Member

Registered: 03/17/00
Posts: 39
Mikal that a different hack that you can find at http://ubbcodehacking.com/ubb/Forum7/HTML/000007.html.

hunter

Top
#36086 - 03/23/00 05:10 PM Re: *Last Username To Post* in forumdisplay.cgi
Mikal Offline
Junior Member

Registered: 03/14/00
Posts: 23
Cool - I love to hear i didnt get anything wrong - BUT, that url doesnt work - how about a name for the hack so i know what to search for? - Thanks.
_________________________
Eagles may soar, but weasels don't get sucked into jet engines.

Top
#36087 - 03/23/00 07:42 PM Re: *Last Username To Post* in forumdisplay.cgi
hunter Offline
Member

Registered: 03/17/00
Posts: 39
try the link again it works.

hunter

Top
#36088 - 04/17/00 11:04 PM Re: *Last Username To Post* in forumdisplay.cgi
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Anyone get this to work with 5.45b???

I see it's up with this forum but having all kinds of things disappear on me when I tried to implement the original message.

For instance, after the 2nd post, it stopped tracking who the last one was. I also lost the total posts, and origin of the poster (set in General Settings) when one posts a new post or a reply.

I saw a lot of questions but no one seems to answer. I know it's doable but would appreciate any help.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#36089 - 04/18/00 12:44 PM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I too had the same problem, i had to have cal help me with my ubb_library2.pl to get it back to normal, thats where it screws something up. Im not sure this works for the latest 5.45b. It possibly does, but unless you know perl pretty good you wont be able to tell what your doing wronge

Top
#36090 - 04/18/00 01:39 PM Re: *Last Username To Post* in forumdisplay.cgi
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Lots of hacks are not compatible with 5.4.5 because of the way it handles profile fields. In time they should all be updated/fixed.

Just a thought
_________________________
http://www.iamcal.com

Top
#36091 - 04/19/00 12:32 AM Re: *Last Username To Post* in forumdisplay.cgi
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Took a while to hack in, but works well in v5.45b using Slurpee's directions . I didn't do anything different than he says.

------------------
Allen

- http://www.stand318.com
_________________________
- Allen wavey
- What Drives You?

Top
#36092 - 04/19/00 01:18 PM Re: *Last Username To Post* in forumdisplay.cgi
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
No kidding?

Ok... let me get rid of Mutt's UBB Code Buttons and see what happens.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#36093 - 04/19/00 02:12 PM Re: *Last Username To Post* in forumdisplay.cgi
twice Offline
Junior Member

Registered: 03/17/00
Posts: 15
Loc: Orange, CA
Excellent Hack Slurpee!

Just put it into 5.44 using profile linking without a hitch per your instructions!

-twice

Top
#36094 - 04/19/00 03:06 PM Re: *Last Username To Post* in forumdisplay.cgi
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Okee dokee. Two things. For one, it didn't work with Mutt's UBB Code Button hack (like it works on this forum) and I did have a problem with one of Slurpee's instruction.

When he says to edit the forumdisplay file (for profile link)

In the subroutine TopicGutsHTML
Look for this code:
$ThisURL = qq($NonCGIURL/$ExactPath/HTML/$threadinfo[1].html);

Below it add the following:
$lastAuthName = qq(<A HREF="$CGIURL/ubbmisc.cgi?action=getbio&UserName=$threadinfo[8]" target=_blank> );
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;

That part has a white space that was giving me headaches. Deleting that white space fixed my problem...

Just a though... OOPS! Sorry Cal!!!
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#36095 - 04/19/00 04:26 PM Re: *Last Username To Post* in forumdisplay.cgi
twice Offline
Junior Member

Registered: 03/17/00
Posts: 15
Loc: Orange, CA
It worked right when I installed it on all existing posts (after I re-built by doing the re-count/update threads), but when someone posts, it ends up being blank where their name should be! Check this out... any pointers would be much obliged!

Example

**UPDATE - Not only that but users can no longer post new topics! Replies work but new topics don't! I'm gonna have to back this one out.

-twice

Top
#36096 - 04/19/00 08:51 PM Re: *Last Username To Post* in forumdisplay.cgi
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
I would re-do the hack. Try it a few times. It's the only way to know that it's not your syntax. Make sure all of your statements end with a semicolon and all of the variables have either a $ or @ in front of it (% is not being used in the changes from what I can tell).

Also, take a look at the HTML and make sure no whitespace where it would screw things up.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#36097 - 04/21/00 02:48 AM Re: *Last Username To Post* in forumdisplay.cgi
twice Offline
Junior Member

Registered: 03/17/00
Posts: 15
Loc: Orange, CA
PrimeTime, you were right! I missed an edit the first time. Kudos to you, Slurpee, it works great now!

-twice

Top
#36098 - 04/27/00 11:05 AM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Last UserName to Post

now work with privats / multipagehack
UBB 5.45x

greetings from gErMaNy!

Top
#36099 - 04/27/00 09:39 PM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
does it work?

Top
#36100 - 04/28/00 04:22 PM Re: *Last Username To Post* in forumdisplay.cgi
cwm Offline
Member

Registered: 07/29/00
Posts: 32
Loc: Munkyville, Munkyland, Africa
ok, seeing that this is in the "finished hacks" sure is misleading.. IS this thing finished?
_________________________
The first, the best, the biggest.
Crack\'s Smilies =)

Top
#36101 - 04/28/00 07:26 PM Re: *Last Username To Post* in forumdisplay.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
As you can see, none of the hacks is a real "final". There is always something to optimize wink
This hack occupied us for several weeks. There are two versions right now:
  • The first variation shows the last user and you can get into his profile with a click. This hack is also used here.
  • The second variant leads us to the subscription of the last user in the covered thread.
    And this is where our problem appears: there is no support for private forums with more than one page. because of that I build in the routine for that. what happened now was that every post that should still appear on the "old" page was linked to the new, and this was the same with every setting. To be short: something was totally wrong. I removed this bug so that the hack should be a "real" final now. hehe.


the change is very small and applies to Slurpee's original-routine in "forumdisplay.cgi" only, so this is the only thing you need exchanged.

<FONT face="courier new"><FONT COLOR="blue">##Slurpee's Last Username Hack for Thread Link
$replies = $threadinfo[3];
$totalposts = $replies;
$lastpage = "";
$thesepages = $totalposts / $HTMLDisplayMax;
my ($thesetotal,$remainder) = split(/./,$thesepages);
$thesetotal = $thesetotal+2;
$lastpage = "$ThisURL";
if ($PrivateMax eq "yes") {
for (my $i=2; $i< $thesetotal ; $i++){
$lastpage = "$CGIURL/forumdisplay.cgi?action=displayprivate&number=$number&topic=$threadinfo[1]-$i";
}
} else {
for (my $i=2; $i< $thesetotal ; $i++){
$lastpage = "$NonCGIURL/$ExactPath/HTML/$threadinfo[1]-$i.html";
}
}
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;
if ($replies >= 1) {
$lastAuthName = qq( by
<a href="$lastpage#$threadinfo[8]$TheDate$FormatTime">$lastName</a> );
}
else {
$lastAuthName = "";
}
##############
</FONT f></FONT c>

but just because it works perfectly for me it does not have to work for everyone else wink Thats the reason for my question.

Top
#36102 - 04/28/00 11:28 PM Re: *Last Username To Post* in forumdisplay.cgi
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
I don't know guys, I had a couple private forum topics longer than one page and it worked fine, so I don't know what to say.


------------------
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
#36103 - 06/02/00 08:34 AM Re: *Last Username To Post* in forumdisplay.cgi
CoCoT Offline
Junior Member

Registered: 06/02/00
Posts: 10
Loc: Toronto, Canada
Is there a FINAL complete hack?
In my case, when I completed the hack, it worked fine when someone posted a new topic...when they made a reply to a thread, the whole thread would disappear from the list!

If the final hack is out there, can someone please post it with instructions...

Thanks...

Tony

Top
#36104 - 06/12/00 01:42 PM Re: *Last Username To Post* in forumdisplay.cgi
Dm_Vinny Offline
Junior Member

Registered: 06/12/00
Posts: 12
Loc: FL
I installed the hack that AA had posted a while back that supposably displays the "last reply by" in the private section, it didnt work =(, and sometimes i will get:

Last Reply By: 0

instead of

Last Reply By: Username

can someone help me out here?

Top
#36105 - 06/15/00 02:11 PM Re: *Last Username To Post* in forumdisplay.cgi
repstein Offline
Junior Member

Registered: 01/15/00
Posts: 12
Yes, I had this problem too. There is an error in the code. I emailed the fix to Slurpee last night. But here it is for you all.

open forumdisplay.cgi

Scan for Slurpee And replace that section with the following.

Code:
code:



++Russ


<font size=1>[This message has been edited by repstein on June 15, 2000]</font>

Top
#36106 - 06/15/00 02:36 PM Re: *Last Username To Post* in forumdisplay.cgi
Dm_Vinny Offline
Junior Member

Registered: 06/12/00
Posts: 12
Loc: FL
Well I fixed it myself, well at least the problem with the private forums, I dont exactly know what you did there repstien, but i didnt need to do that...

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);
}
$replies = $threadinfo[3];
$totalposts = $replies;
$lastpage = "";
$thesepages = $totalposts / $HTMLDisplayMax;
my ($thesetotal,$remainder) = split(/./,$thesepages);
$thesetotal = $thesetotal+2;
$lastpage = "$ThisURL";
if ($PrivateMax eq "yes") {
for (my $i=20; $i< $thesetotal ; $i++) {
$lastpage = "$CGIURL/forumdisplay.cgi?action=displayprivate&number=$number&topic=$threadinfo[1]-$i";
}
} else {
for (my $i=20; $i< $thesetotal ; $i++) {
$lastpage = "$NonCGIURL/$ExactPath/HTML/$threadinfo[1]-$i.html";
}
}
$lastName = $threadinfo[8];
$lastName =~ tr/+/ /;
if ($replies >= 1) {
$lastAuthName = qq(
last reply by:<a href="$lastpage#$threadinfo[8]$TheDate$FormatTime">$lastName</a> );
}
else {
$lastAuthName = "";
}

so far the newer posts have been working, but i still don't know why i got that last reply by: 0 thing... must of been a fluke..

but this little code up there let's the private forums show "last reply by: "


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

Top
#36107 - 06/18/00 08:56 PM Re: *Last Username To Post* in forumdisplay.cgi
smachol Offline
Junior Member

Registered: 06/04/00
Posts: 13
Loc: Glendale, AZ
Repstein,

Thank you very much for this update to Slurpee's code. This fixed the problem I was having with the "Actual Post Linking" option.

------------------
Steve
OptiBoard Discussion Forums
_________________________
Steve
OptiBoard Discussion Forums

Top
#36108 - 01/14/01 08:08 PM Re: *Last Username To Post* in forumdisplay.cgi
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
File has been updated in the database:

click here

------------------
Allen

- http://www.stand318.com
_________________________
- Allen wavey
- What Drives You?

Top
#36109 - 01/21/01 06:04 AM Re: *Last Username To Post* in forumdisplay.cgi
iowan Offline
Member

Registered: 01/18/01
Posts: 48
i installed slurpee's hack exactly as it should be , but the last post doesn't show , i get no errors or anything but it just don't show , what could be wrong with that ? is it my ubb version ?( 5.47c ) its leaving me clueless .

iowan.

Top
#36110 - 01/22/01 02:12 PM Re: *Last Username To Post* in forumdisplay.cgi
Dark Templar Offline
Member

Registered: 09/30/00
Posts: 982
Loc: California | Retired UBB Hacke...
...you're using the wrong one...I updated this file, look for "Latest reply by in forumdisplay.cgi" I offer pretty much full support for mine..

------------------
<IMG SRC="http://www.geocities.com/theultimagamers/darktemplar.gif" border=0>
_________________________
-DT

Top
#36111 - 06/19/01 08:04 AM Re: *Last Username To Post* in forumdisplay.cgi
Boss Hoss Offline
Junior Member

Registered: 06/18/01
Posts: 2
Loc: USA
Ok then..how do I change the hack from the link to profile, to link to last post in thread??? Please tell me, please! Someone email me the hack?

Top
#36112 - 06/20/01 03:40 AM Re: *Last Username To Post* in forumdisplay.cgi
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
It says In the readme there is two options: link to profile and link to Thread poster.

Top
#36113 - 10/22/01 05:38 AM Re: *Last Username To Post* in forumdisplay.cgi
neurospiral Offline
Junior Member

Registered: 06/20/01
Posts: 15
I just installed the version of this hack that is in the UBBDev database, and it's working great. My only question is how do you get the username link to point to the user's profile rather than the thread he replied to?

The only info about this hack is in one text file, and it doesn't say anything about switching between "profile" to "thread" link modes.

Thanks in advance to anyone that could clear this up for me.

Top
#36114 - 10/22/01 10:50 AM Re: *Last Username To Post* in forumdisplay.cgi
Vipermad Offline
Member

Registered: 10/11/00
Posts: 344
Loc: Newport, RI
Hi again neuro!! smile

Again, my 2 cents says to leave it as a navigation aid instead of a link to the profile. I'll go out on a limb and say that MOST users want to get to the most recent POST before they want to know WHO posted it. Once there, they can always get the profile of the poster.

Again, just my 2 cents...but IMVVVHO it is USELESS with a link to the poster's profile. smile

To answer your question, though, I'll have to revisit the docs and get back to you. smile
_________________________
Tony (Vipermad) Rickard
Viper Club UBB Admin

Top
#36115 - 10/22/01 09:20 PM Re: *Last Username To Post* in forumdisplay.cgi
neurospiral Offline
Junior Member

Registered: 06/20/01
Posts: 15
Thanks Vipermad, that's really a good point about leaving the links as navigational aids. Made me wonder "what the heck was I thinking?" to want to change it in the first place.

Unfortunately there was more than one problem with the way this modification worked on my board, and I decided that I would just remove it. I found that some usernames are rather long, and having to display them in the "last post" table threw off the other fields to the extent that in some forums the "last post" field was longer than the subject field. It just didn't look aesthetically pleasing to me.

Also, for some reason when you click on the username link, rather than take you to the user's final post in the thread it took you to the beginning of the thread. Not sure why. Anyway, I just figured the negatives outweighed the positives so I said adios to the hack.

Thanks again for all your repeated help and insight, Vipermad. You rule.

Top
#36116 - 10/23/01 02:53 AM Re: *Last Username To Post* in forumdisplay.cgi
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yeah what you should do is if you don't want the long usernames just edit the Maximum charecters allowed in a username. The deafault is 25 so something like 15 won't hurt the tables tooo much.

Top
#36117 - 10/23/01 09:38 AM Re: *Last Username To Post* in forumdisplay.cgi
Vipermad Offline
Member

Registered: 10/11/00
Posts: 344
Loc: Newport, RI
Good idea there Lord...but once the board is up and has a bunch of users it might be too late. Good thing to possibly add into the archives for new 5.xx users (yes, I think there are MANY who prefer a 5.xx board over 6 smile ).

Neuro, you are correct. I have done extensive testing with max length usernames, and it IS something that can be annoying. What I did on one board was I modified the text, and the layout of the "last post by....." so it was much shorter and didn't affect the cell width as much.

If I was starting over, I would combine what I have already done, with Lord's idea, for a much happier place!! smile
_________________________
Tony (Vipermad) Rickard
Viper Club UBB Admin

Top
#36118 - 11/21/01 03:01 PM Re: *Last Username To Post* in forumdisplay.cgi
neurospiral Offline
Junior Member

Registered: 06/20/01
Posts: 15
I'm revisiting this hack and since I just can not get the link to the "last user to post" to go to that user's last post (it just goes to the top of the thread and you still have to scroll down to get to the last post), I'm once again considering having it link to the user's profile instead. It says in the hack database description:

Quote:
quote:


I don't see that option, can anyone shed some light on this? I suspect I may have to change something in:

if ($replies >= 1) {
$lastAuthName = qq(
Latest reply by: <a href="$lastpage#$threadinfo[3]">$lastName</a> );
} else {
$lastAuthName = "";
}

But I'm not sure exactly what.

The link to the instructions is here, if anyone is interested in looking into it for me:

http://www.ubbdev.com/hacks/latestreplybyinforumdisplay.txt

Thanks in advance. I'm sure that there will be some future users that will be interested in this option as well.

Top
#36119 - 11/23/01 04:18 AM Re: *Last Username To Post* in forumdisplay.cgi
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Guys.. i really need this mod for my 5.47e version, but the link no longer works.. can anyone tell me how I can add author name to the summary of last posts to the forums??

thanks!

Top
#36120 - 11/23/01 04:32 AM Re: *Last Username To Post* in forumdisplay.cgi
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Sorry guys! I just saw the last post, missed that before.. thanks! all sorted.

Top
#36121 - 11/26/01 06:40 PM Re: *Last Username To Post* in forumdisplay.cgi
neurospiral Offline
Junior Member

Registered: 06/20/01
Posts: 15
Quote:
quote:


Anyone know where this elusive option is?

Top
#36122 - 11/26/01 11:57 PM Re: *Last Username To Post* in forumdisplay.cgi
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Quote:
quote:


Download "Last post in Ultimate.cgi" from the v5 Database.

Top
#36123 - 11/30/01 10:10 AM Re: *Last Username To Post* in forumdisplay.cgi
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
Quote:
quote:


Indeed dude...
I trying to collect all the 5.xx series hacks, so people don't keep on gettin broken links <img src="frown.gif" border="0" alt="" />

Top
#36124 - 11/30/01 07:29 PM Re: *Last Username To Post* in forumdisplay.cgi
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yeah. There are also alot of hacks missing from UBBDev's database. SpAwN's database (when it was up) had 140 V5 Hacks.

Top
#36125 - 12/01/01 04:19 PM Re: *Last Username To Post* in forumdisplay.cgi
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
Is spawn's ever going back up ?
If not, can someone lemme know where I can get a hold of all the hacks..
I'll make a little site for 'em

Top
#36126 - 12/01/01 06:49 PM Re: *Last Username To Post* in forumdisplay.cgi
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
It was up but it went down because Piratecove switched servers and he has to wait for SpAwN to move the files.

Top
#36127 - 12/02/01 11:08 AM Re: *Last Username To Post* in forumdisplay.cgi
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
ohh..
Is he still around ?

Top
Page 1 of 4 1 2 3 4 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks