Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Comment Color Coding Code Complete

posted by Krow on 09:59 AM September 18th, 2002   Printer-friendly   Email story
I have just submitted a patch that allows for the color coding of comments based on "freshness".

Using a cookie set by article.pl and read by comments.pl the template makes the color of the table cell behind the comment subject one color if the comment was there the last time the user viewed the page and another color if the comment is new to that user. (note that this is being done on a site locked into Nested view, so every comment is visible and in a table box).

This was not as easy as I thought it would be, and I would like to acknowledge the efforts of the entire team of people I work with [ http://openflows.org ], as well important advice and help that was provided by Jamie in #slash and members of the slashcode-general mailing list.

You can see the code in action at http://boards.sportsnet.ca

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.