I tried this out on one of my forums and I got a parse error. I figured I'd try it on another one and got a parse error on that one too. I thought it might be conflicting with one of the mods installed, so I tried it on a clean copy of phpbb... still got the parse error.
Parse error: parse error in /forum/index.php on line 402
Lines 391-421:
Code: if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : $forum_data[$j]['username']
/*
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
*/
}
else
{
$last_post = $lang['No_Posts'];
}
/*
if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = ' ';
$moderator_list = ' ';
}
*/
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
On all three of them, it happened on the same line with just the "}" before "else." I checked my modifications three times on one of the sites and still came up with the same error. Any idea what could be wrong?
Jennifer