Same problem in forumdisplay.php.
I did it this way:
PHP Code:
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (isset($bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) {
$userlastvisit=$bbforumview[$forum['forumid']];
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
// ** CODE ADDED BY ETHANK TO SEE IF THE FORUM WAS MARKED READ SEPERATELY
/* Select id from forum where parentlist like forumid
cycle through, for each if lates thread is greater than mark read time or bbuserinfo, select lastpost, limit 1, if true flag
*/
$forum['onoff'] = 'off';
I hope, this will work.
(But i'm not finished with everything until now. Maybe in just an hour i will try to install this all.)
(The part in index.php is the same like in forumdisplay.php ... isn't it?)