I think this does all the work
Code:
// THIS METHOD CREATES A FORUM USER WITH THE SAME USERNAME AS THE CURRENT USER
// INPUT:
// OUTPUT:
function forum_user_create() {
global $db, $board_config;
// GET NEXT USER ID
$row = $db->sql_fetchrow($db->sql_query("SELECT MAX(user_id) AS max_user_id FROM " . USERS_TABLE));
Leave a comment: