There is a bug somewhere in the new code updating "viewforum.php" and "index.php". The problem is the Last Post date and username is not correct on any post waiting for approval. Instead it lists a post that was made a week ago in some cases and in other cases a few days ago. This did not start happening until I did the updates posted. When I removed all new updates the problem dissappeared.AceMan wrote: can you assist me in debugging the 1.1.0? URLs & examples would be helpful
jayb wrote:There is a bug somewhere in the new code updating "viewforum.php" and "index.php". The problem is the Last Post date and username is not correct on any post waiting for approval. Instead it lists a post that was made a week ago in some cases and in other cases a few days ago. This did not start happening until I did the updates posted. When I removed all new updates the problem dissappeared.AceMan wrote:can you assist me in debugging the 1.1.0? URLs & examples would be helpful
Code: Select all
//
// Begin Approve_Mod Block : 1.1.0_index_2
//
if ( !empty($approve_forums_last_posts[$j]) )
{
if ( $approve_forums_last_posts[$j] == ANONYMOUS )
{
$last_post = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']) . '<br />';
$last_post .= $lang['Guest'] . ' ' . '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $forum_data[$j]['forum_id']) . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
else
{
$last_post = $approve_forums_last_posts[$j];
}
}
//
// End Approve_Mod Block : 1.1.0_index_2
//
Code: Select all
$emailer = new emailer($board_config['smtp_delivery']);
[LINE 1061] $emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->use_template('privmsg_notify', $to_userdata['user_lang']);