php forum
php mysql forum
php mysql smarty
 
Topic Options
#217820 - 06/03/02 04:29 PM Adding a tr class to new posts
Muhammad Offline
Kahuna

Registered: 09/26/99
Posts: 1289
Loc: Tucson, AZ
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. <br /> <br />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: <br /> <br />[:"blue"]// -------------------- <br />// alternate the colors <br />if ( ($Posted >= $unread) && (!ereg($thisone,$read ) ) ) { <br />$postrow[$z]['color'] = 'newthread'; <br />} else { <br />$color = $html -> switch_colors($color); <br />}[/] <br /> <br />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. <br /> <br />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. <br /> <br />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. <br /> <br />Basically, anytime the "/newicons/" would be used instead of "/icons/" I need to change that row to be class = "newthread" ... <br /> <br />So, where are they all?


Edited by Muhammad (06/03/02 04:51 PM)
_________________________
Muhammad

Top
#217821 - 06/03/02 11:26 PM Re: Adding a tr class to new posts [Re: paulj]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8373
Loc: Olympia, WA
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

Top



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