in some way it wont work here.
i installed the hack on a fresh new board to see where the problem was.
its the modification in index.php with me.
i have to replace this and then it goes wrong
PHP Code:
REPLACE:
// 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'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
WITH:
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
// ** 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';
// Need to find forum children
$children_array = find_children($forum['forumid']);
for ($i=0;$i<count($children_array);$i++)
{
$childrenid = $children_array[$i];
$forum_array = $forumsarray_markread[$childrenid];
$readtime = $forum_array['readtime'];
$latest_thread = $forum_array['lastpost'];
$forum['last_thread'] = $latest_thread;
//Check to see if this thread's last read is < than the markread or base mark read
if ($readtime != '')
{
if ($readtime<$latest_thread)
{
$forum['onoff']='on';
}
}
else
{
$forum_info = $forumsarray_list[$childrenid];
$latest_thread = $forum_info['lastpost'];
if ($bbuserinfo['lastvisit']< intval($latest_thread))
{
$forum['onoff'] = 'on';
}
}
}
anyone can see if there a sign missing or too much??