$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'; } ?> Forte Gaming


'; echo ''.parse_message($data['intro'], $data['hide_smilies']).'
'; echo ''.parse_message($data['message'], $data['hide_smilies']).'

'; echo '

'.$news_actions.'

'; echo '
'.$data['num_replies'].' Comments
'; ?> query("SELECT g.g_color, g.g_id, p.message, p.hide_smilies, p.edited, p.edited_by, p.posted, p.poster, p.poster_id, u.username, u.location, u.char_class, u.id AS uid FROM ".$db->prefix."posts AS p INNER JOIN ".$db->prefix."users AS u ON p.poster_id = u.id INNER JOIN ".$db->prefix."groups AS g ON g.g_id=u.group_id WHERE p.topic_id = ".$data['tid']." ORDER BY p.posted LIMIT ".$start_from.",30") or error('Unable to fetch article info', __FILE__, __LINE__, $db->error()); while($row = $db->fetch_assoc($result)) { $post_count++; $class = ($row['char_class'] != '') ? 'class/'.pun_htmlspecialchars($row['char_class']) : 'none'; $location = ($row['location'] != '') ? $row['location'] : 'none'; $userclass = 'class  '; $userloc = 'location  '; // No Images for commenters $no_images = 1; // Guest? $username = ''.$row['username'].''; ?>

    #

Last edited by '.pun_htmlspecialchars($row['edited_by']).' ('.format_time($row['edited']).')

'; ?>

There are no comments yet.

'; // Display quick post if enabled if ($quickpost) { ?>

Add Your Comment

Write your comment and submit