title: Full integrate phpbb into existing website
body: <p>I have a website that runs for around 2-3 years before, it has its own forum, however, recently I would like to use the phpbb3 to replace that forum. I encounter the problem when I need to do integration . </p>
  
  <p>To be precise, I have an existing database that have fields designed for my own website. What I would like to do is the <strong>old user do not need to register again and can login to the phpbb forum, using every functions it provided</strong> (e.g. check profile) . Are there any way to implement such conversion? </p>
  
  <p>So far I have got some source code to check login, but there are a lots of works should be done for full integration ? e.g. create forum profile for old user? Are there any step-to-step guide? Thanks for helping.</p>
  
  <pre><code>&lt;?php
  define('IN_PHPBB', true);
  $phpbb_root_path = '../phpBB3/'; //the path to your phpbb relative to this script
  $phpEx = substr(strrchr(__FILE__, '.'), 1);
  include("../phpBB3/common.php"); ////the path to your phpbb relative to this script
  // Start session management
  $user-&gt;session_begin();
  $auth-&gt;acl($user-&gt;data);
  $user-&gt;setup();
  
  $username = request_var('username', 'john');
  $password = request_var('password', '123');
  
  if(isset($username) &amp;&amp; isset($password))
  {
    $result=$auth-&gt;login($username, $password, true);
    if ($result['status'] == LOGIN_SUCCESS) {
      echo "You're logged in";
    } else {
      echo $user-&gt;lang[$result['error_msg']];
    }
  }
  </code></pre>
  
  <p>?></p>