Mod Name / Version: Expanded view postlist fix
Description: When viewing a postlist in expanded view, the initial post in a thread no longer displays itself as unread when a reply is made.
This fix may work in versions other than the one listed, although I cannot confirm.
Working Under: UBB.Threads 6.3
Mod Status: Finished
Any pre-requisites: Author(s): Twisty
Date: 07/23/04
Credits: Files Altered: postlist.php
New Files: Database Altered: no
Info/Instructions: In postlist.php...
CHANGE THIS:
if ( ($new == "yes") || ( ($Last_Post > $unread) && (!$config['newcounter']) ) ) { <br /> if ($rowcolor == "$color") { <br /> $rowcolor = "new$color"; <br /> $alt = "*"; <br /> } <br /> }
TO THIS:
if ( ($view == "collapsed") && ( ($new == "yes") || ( ($Last_Post > $unread) && (!$config['newcounter']) ) ) ) { <br /> if ($rowcolor == "$color") { <br /> $rowcolor = "new$color"; <br /> $alt = "*"; <br /> } <br /> }
:-)
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.