opentable($locale['c100']); $c_rows = dbcount("(comment_id)", DB_COMMENTS, "comment_item_id='$cid' AND comment_type='$ctype'"); if (!isset($_GET['c_start']) || !isnum($_GET['c_start'])) { $_GET['c_start'] = 0; } $result = dbquery( "SELECT tcm.*,user_name, user_avatar, user_id, user_posts, user_joined, user_location, user_lastvisit FROM ".DB_COMMENTS." tcm LEFT JOIN ".DB_USERS." tcu ON tcm.comment_name=tcu.user_id WHERE comment_item_id='$cid' AND comment_type='$ctype' ORDER BY comment_datestamp ASC LIMIT ".$_GET['c_start'].",10" ); if (dbrows($result)) { $i = 0; if ($c_rows > 10) { echo "
\n"; if ($current_row > 1) { echo " | |
\n | |
".$data['user_name']." | \n"; echo "\n"; echo " | \n"; echo "
\n";
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
echo " \n"; echo "\n"; } else { echo " ![]() \n"; echo " \n"; echo "Joined: ".showdate("%d.%m.%y", $data['user_joined'])." \n"; echo "From: ".$data['user_location']." \n"; echo " | \n\n"; echo "".nl2br(parseubb(parsesmileys($data['comment_message'])))."\n"; $i++; } echo " |