php forum
php mysql forum
php mysql smarty
 
Page 3 of 4 < 1 2 3 4 >
Topic Options
#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 Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
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
Page 3 of 4 < 1 2 3 4 >


Who's Online
2 registered (Gizmo, Pilgrim), 21 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
12/04/08 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks