I think I might have messed up the install somewhat, but don't know where to look.
I installed the mod, made the necessary chances to get the instant redirect mod working again, then tested it. I posted a thread and then went back to the forum after viewing. It shows up as unread to me.
I viewed the forum, and my post showed as unread to me.
I viewed it in a different browser, and I couldn't get it to change to read for anonymous either.
I tried viewing unread posts, and no results matched my criteria.
Then I clicked the "Mark all topics read", and received the following errors:
code, from line 500-550:Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/rogue/public_html/forum/viewforum.php on line 126
Warning: implode() [function.implode]: Bad arguments. in /home/rogue/public_html/forum/viewforum.php on line 126
Warning: Cannot modify header information - headers already sent by (output started at /home/rogue/public_html/forum/viewforum.php:126) in /home/rogue/public_html/forum/includes/page_header.php on line 517
Warning: Cannot modify header information - headers already sent by (output started at /home/rogue/public_html/forum/viewforum.php:126) in /home/rogue/public_html/forum/includes/page_header.php on line 519
Warning: Cannot modify header information - headers already sent by (output started at /home/rogue/public_html/forum/viewforum.php:126) in /home/rogue/public_html/forum/includes/page_header.php on line 520
Warning: Cannot modify header information - headers already sent by (output started at /home/rogue/public_html/forum/viewforum.php:126) in /home/rogue/public_html/forum/includes/page_header.php on line 521
Code: Select all
$folder_new = $images['folder_announce_new'];
}
else if( $topic_rowset[$i]['topic_type'] == POST_STICKY )
{
$folder = $images['folder_sticky'];
$folder_new = $images['folder_sticky_new'];
}
else if( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED )
{
$folder = $images['folder_locked'];
$folder_new = $images['folder_locked_new'];
}
else
{
if($replies >= $board_config['hot_threshold'])
{
$folder = $images['folder_hot'];
$folder_new = $images['folder_hot_new'];
}
else
{
$folder = $images['folder'];
$folder_new = $images['folder_new'];
}
}
//START MOD Keep_unread_2
if( $topic_rowset[$i]['post_time'] > topic_last_read($forum_id, $topic_id) )
{
$folder_image = $folder_new;
$folder_alt = $lang['New_posts'];
$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';
}
else
{
$folder_image = $folder;
$folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
$newest_post_img = '';
}
//END MOD Keep_unread_2
}
if( ( $replies + 1 ) > $board_config['posts_per_page'] )
{
$total_pages = ceil( ( $replies + 1 ) / $board_config['posts_per_page'] );
$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': ';
$times = 1;
for($j = 0; $j < $replies + 1; $j += $board_config['posts_per_page'])
{
thanks very much,
json