Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 1999
Posts: 339
Kahuna
Kahuna
Offline
Joined: Sep 1999
Posts: 339
On 5.5, I have this done, but with the changes to V6, this is much harder to do, because the code isn't all in the same place anymore.

I need to know what code to add to postlist.php and showthreaded.php to add a tr class to new posts(class "newthread" in the css)... Right now I edited the code near the "Alternate Colors" to be:

[:"blue"]// --------------------
// alternate the colors
if ( ($Posted >= $unread) && (!ereg($thisone,$read ) ) ) {
$postrow[$z]['color'] = 'newthread';
} else {
$color = $html -> switch_colors($color);
}[/]

But this will only update the new post itself. We need to color the original post of the thread if there are any replies to the thread, for collapsed mode.

When viewing in collapsed mode, anytime there is a new post we want the parent post to have the newthread class to that table row.

When viewing in expanded mode, we want just the new posts to have the newthread class to that table row, not also the parent thread. And on showthreaded, same thing.

Basically, anytime the "/newicons/" would be used instead of "/icons/" I need to change that row to be class = "newthread" ...

So, where are they all?

Last edited by Muhammad; 06/03/2002 4:51 PM.

Muhammad
Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
All of the posts are stored in the $postrow array. It would just be a matter of changing the color key when necessary. I'd try to track this down for ya if I could but we're very close to finishing for the final release and trying to get everything ready and make sure I don't forget something as usual. If you still haven't found it when after we get the final out I can take a look.


UBB.threads Developer

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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 20221218)