Previous Thread
Next Thread
Print Thread
Rating: 3
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I took a quick look... and have this working on showflat.php..... I didn't look at showthreaded yet..... because there are some problems that I don't know how to work around.

While I kinda got it..... the whole thing is probably just out of my reach... maybe with enough hacking around it could be done. It would certainly take me alot more free time than I've got.

What this does.... (in showflat view) is only show the replies to the person who started the topic... everyone else only sees the main post:

The problems that I noticed off the top of my head:
- the replies would show up in a search
- the replies would show up when someone "showed all posts by this user"
- when the user makes a reply...they can "view their post" then see the whole thread

code:

##
## Open showflat.php
##

#
# Find this:
#

// -----------------------------------------
// Grab the main post number for this thread
$Number = addslashes($Number);
$query = "
SELECT B_Main
FROM {$config['tbprefix']}Posts
WHERE B_Number = '$Number'
AND B_Board = '$Board'
";
$sth = $dbh -> do_query($query);
list ($current) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);

#
# Change to:
#

// -----------------------------------------
// Grab the main post number for this thread
$Number = addslashes($Number);
$query = "
SELECT B_Main, B_Username
FROM {$config['tbprefix']}Posts
WHERE B_Number = '$Number'
AND B_Board = '$Board'
";
$sth = $dbh -> do_query($query);
list ($current,$MainUsername) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);


#
# Find this:
#

// -----------------------------------------------------------------
// We need to know how many posts of this thread to display per page
if ($fpart <= 1) {
$Totalgrab = $Totaldisplay;
}
else {
$Startat = $Totaldisplay * ($fpart - 1);
$Totalgrab = "$Startat, $Totaldisplay";
}
$Limit = "LIMIT $Totalgrab";
if ($fpart == "all") {
$Limit = "";
}

$threadnumber = $Number;


#
# Change to this:
#

// -----------------------------------------------------------------
// We need to know how many posts of this thread to display per page
if ($user['U_Username'] == $MainUsername) {
if ($fpart <= 1) {
$Totalgrab = $Totaldisplay;
}
else {
$Startat = $Totaldisplay * ($fpart - 1);
$Totalgrab = "$Startat, $Totaldisplay";
}
$Limit = "LIMIT $Totalgrab";
if ($fpart == "all") {
$Limit = "";
}
}
else {
$Limit = "LIMIT 1";
}

$threadnumber = $Number;



Since you need this in a bunch of boards... you would need to add a lot of "if the board is xxxxxxx" then have it check if the $user['U_Username'] was equal to the B_Username of the main post.
There would be lots of scripts you'd have to work this into.

But in theory it's probably possible.

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.0.x / 6.1.x] Who's Online PM Link 1.0 JoshPet 08/23/2002 1:29 AM
Re: [6.x] Who's Online PM Link 1.0 ExcelsiorDDZ 08/24/2002 9:05 PM
Re: [6.x] Who's Online PM Link 1.0 spiffy 09/22/2002 2:18 PM
Re: [6.x] Who's Online PM Link 1.0 Aglavalin 09/22/2002 8:21 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 09/23/2002 4:41 AM
Re: [6.x] Who's Online PM Link 1.0 Aglavalin 09/23/2002 7:06 AM
Re: [6.x] Who's Online PM Link 1.0 spiffy 09/23/2002 3:16 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/23/2002 9:59 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/23/2002 11:13 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/24/2002 5:53 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/24/2002 8:39 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/24/2002 9:37 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/25/2002 7:22 AM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/25/2002 3:08 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/25/2002 4:00 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/25/2002 6:37 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/25/2002 8:21 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/25/2002 9:25 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/25/2002 9:29 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/26/2002 1:21 AM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/27/2002 3:10 AM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/28/2002 1:53 AM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/28/2002 3:15 AM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/28/2002 12:19 PM
Re: [6.x] Who's Online PM Link 1.0 JoshPet 10/28/2002 4:35 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 10/30/2002 11:53 AM
Re: [6.x] Who's Online PM Link 1.0 cstaber 12/16/2002 11:38 PM
Re: [6.x] Who's Online PM Link 1.0 smilesforu 03/02/2003 8:41 AM
Re: [6.x] Who's Online PM Link 1.0 Astaran 03/02/2003 12:29 PM
Re: [6.x] Who's Online PM Link 1.0 Gregori 12/27/2003 3:08 PM
Re: [6.x] Who's Online PM Link 1.0 ScottCargill 12/29/2003 12:16 AM

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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)