If i may chime in, I know im a newbie here. Do you mean you want to integrate your board and the forums to one user system? If so, I'm basically working on the same thing myself. If you're referring to cloning the current users from your site, to the forum and then making one registration system, that is also possible.
For the registration system, you'd just connect to your phpbb database using a config file (you can do this in PDO which i recommend) Here is mine for example:
Code: Select all
define('DB_HOST', 'Your.Database.Host');
define('DB_NAME', 'Database Name');
define('DB_USERNAME', 'Database Username');
define('DB_PASSWORD', 'Database Password');
define('ERROR_MESSAGE', 'Oops, we ran into a problem here');
try {
$odb = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USERNAME, DB_PASSWORD);
}
catch( PDOException $Exception ) {
error_log('ERROR: '.$Exception->getMessage().' - '.$_SERVER['REQUEST_URI'].' at '.date('l jS \of F, Y, h:i:s A')."\n", 3, 'error.log');
die(ERROR_MESSAGE);
}
function error($string)
{
return '<div class="alert alert-danger alert-dismissable"></button><strong>ERROR:</strong> '.$string.'</div>';
}
function success($string)
{
return '<div class="alert alert-success alert-dismissable"></button><strong>SUCCESS:</strong> '.$string.'</div>';
}
The config file can be included in your website header using php include, or require.
After that, its as simple as writing a registration script to register phpbb users to the tables, give them proper permissions, etc.
As far as converting your users table to phpbb to insert your current websites users, do a side by side window of both SQL files and just write your own info really. Not sure if theres converters out there. Otherwise id honestly have them register on their own while your creating the new registration page and then any newcomers can use the new dual registration page system afterwards.