Thanks for this Mod zparta. I installed the Mod on my board without scrolling and adapted it to my style: (No link anymore - threw the Mod out

There is only one very annoying problem and you acknowledged it too, but you didn't come up with a solution yet.
It's the following:
The read/unread code does not work properly. So if you have an unread posting, read it and go to the index again it will still be marked unread. Even if you click on "mark all topics read" those postings in the mod will show up unread. Only if you log out and then Log in again it will be marked read.
As a working routine for this read/unread thingie is already somewhere in the code of phpBB, I tried now for several hours to find out myself how this works for the rest of phpBB, but being not that literate in PHP I didn't succeed yet. Did you or any of the other gurus here look into it and have some ideas?
I would really appreciate it if one could at least point out, what code to look for and in which direction the thing could made to work. Then it would be really perfect. Thanks a lot.
And now for something completely different ...
What I did accomplish (semisuccessful) was the porting of the today/yesterday Mod into the Latest Topic Mod:
It doesnt work with just the time though, so I use the whole date now. It is a bit weird, though that $board_config['default_dateformat'] works and $board_config['default_dateformat'] doesn't ... does anybody have an idea why?
What I did was the following
WARNIG!!! Code does not work properly - see next posting
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
else { if ( $row[$i]["post_time"] > $userdata['user_lastvisit'] )
{
$pic = $images['folder_new']; }else{ $pic = $images['folder'];
}
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// MOD - TODAY AT - BEGIN
$zeit = create_date($board_config['default_dateformat'], $row[$i][post_time], $board_config['board_timezone']);
if ( $board_config['time_today'] < $row[$i]['post_time'])
{
$zeit = '<b>' . sprintf($lang['Today_at'], create_date($board_config['default_dateformat'], $row[$i]['post_time'], $board_config['board_timezone'])) . '</b>';
}
else if ( $board_config['time_yesterday'] < $row[$i]['post_time'])
{
$zeit = '<b>' . sprintf($lang['Yesterday_at'], create_date($board_config['default_dateformat'], $row[$i]['post_time'], $board_config['board_timezone'])) . '</b>';
}
else
{
$zeit = create_date($board_config['default_dateformat'], $row[$i][post_time], $board_config['board_timezone']);
}
// MOD - TODAY AT - END
#
#-----[ FIND ]------------------------------------------
#
'POST_DATE' => create_date($board_config['default_dateformat'], $row[$i]["post_time"], $board_config['board_timezone']))
#
#-----[ REPLACE WITH ]------------------------------------------
#
'POST_DATE' => $zeit)
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Cheers
Oliver