<h2>Recent Discussions</h2>
  <ul>
          
      <?php 
$recent_posts = getRecentThreadPost();
if ($recent_posts > 0) {
    while ($recent_post = mysql_fetch_array($recent_posts)) {
        $recent_post_users = getUserById($recent_post['user_id']);
        $recent_post_user = mysql_fetch_array($recent_post_users);
        ?>
  
   <li>
      <div class="picture main-column-picture">
        <div class="post-count"><span class="sprite count">
            <?php 
        $post = countPostByUserId($recent_post_user['id']);
        $totalpost = mysql_fetch_array($post);
        echo $totalpost[0];
        ?>
 </span></div>
        <div class="discuss-name"><a class="topic" href="game-forum-post-<?php 
        echo $recent_post['thread_seo'];
        ?>
"><?php 
        echo $recent_post['thread_name'];
        ?>
</a><br> <span class="date"><?php 
        echo date("d-m-y", strtotime($recent_post['createdAt']));
        ?>
 by </span> <a class="author" href="game-forum-post-<?php 
        echo $recent_post['thread_seo'];
            ?>
              <img src="images/user-avatar.png" alt="" width="100" height="100"/>
              <?php 
        }
        ?>
              <p> join date:<?php 
        echo date("d-M-Y", strtotime($userthread['registered']));
        ?>
 <br/>
                location:<?php 
        echo $userthread['address'];
        ?>
 <br/>
                Post:
                <?php 
        $posts = countPostByUserId($userthread['id']);
        $totalposts = mysql_fetch_array($posts);
        echo $totalposts[0];
        ?>
           
                
                
                           
                <!--<button class="btn btn-xs" style="background:#f7b700; color:#fff; margin-left:40px; padding:3px 8px; font-weight:bold; font-size:1.2em;">REPLY</button>--> 
            </p></div>
            <div class="col-md-9 content-display">
              <h3><strong><?php 
        echo $reply_get['reply_name'];
        ?>
</strong></h3>
             <p><?php