$lang_common['Message']); $quickpost = true; } // Only show first post of the "topic" (news) if($start_from == 0) $start_from = 1; // Fetch the news $result = $db->query("SELECT t.id AS tid, t.poster, t.num_replies, t.subject, p.view_banner, t.posted, p.intro, p.message, p.hide_smilies, p.id, p.edited, p.edited_by, f.id AS forum_id FROM ".$db->prefix."topics AS t INNER JOIN ".$db->prefix."forums AS f ON f.id=t.forum_id INNER JOIN ".$db->prefix."posts AS p ON t.id = p.topic_id WHERE t.id = ".$id." LIMIT 1") or error('Unable to fetch article info', __FILE__, __LINE__, $db->error()); $data = $db->fetch_assoc($result); // Under News Stuff (date, comment, edit..) { // Guest if ($pun_user['is_guest']) $news_actions = ''.$lang_common['On time'].' '.format_time($data['posted']).' | register to comment'; // Admin / Editor if ($pun_user['g_id'] == PUN_ADMIN || $pun_user['g_id'] == FORTE_OFFICER || $pun_user['g_id'] == FORTE_EDITOR || $pun_user['g_id'] == PUN_MOD) $news_actions = ''.$lang_common['On time'].' '.format_time($data['posted']).' | delete | edit | comment'; // Regular user else if ($pun_user['g_id'] != PUN_GUEST) $news_actions = ''.$lang_common['On time'].' '.format_time($data['posted']).' | comment'; } ?>
';
$userloc = '
';
// No Images for commenters
$no_images = 1;
// Guest?
$username = ''.$row['username'].'';
?>