Add in your sql db
ALTER TABLE `forum` ADD `view` int(11) NOT NULL default '0';Find this
echo '</p>';
if (!$user_id) {
if ((empty($_SESSION['uppost'])) || ($_SESSION['uppost'] == 0)) {
echo '<a href="index.php?id=' . $id . '&page=' . $page . '&newup">' . $lng_forum['new_on_top'] . '</a>';
} else {
echo '<a href="index.php?id=' . $id . '&page=' . $page . '&newdown">' . $lng_forum['new_on_bottom'] . '</a>';
}
}
}Add in bottom
mysql_query("UPDATE forum SET view = view + 1 WHERE id = $id");Find again:
echo '<div class="phdr"><a name="up" id="up"></a><a href="#down"><img src="../theme/' . $set_user['skin'] . '/images/down.png" alt="????" width="20" height="10" border="0"/></a> <b>' . $type1['text'] . '</b></div>';Replace with
echo '<div class="phdr"><a name="up" id="up"></a><a href="#down"><img src="../theme/' . $set_user['skin'] . '/images/down.png" alt="????" width="20" height="10" border="0"/></a> <b>' . $type1['text'] . '|'.$type1['view'].' Views </b></div>';DONE