Jump to content
MakeWebGames

Phpbb 3 Registration Integration?


Recommended Posts

  • 7 years later...

That is basically saying put:

 

  define(‘IN_PHPBB’, true);
/* set scope for variables required later */
global $phpbb_root_path;
global $phpEx;
global $db;
global $config;
global $user;
global $auth;
global $cache;
global $template;
 # your php extension
$phpEx = substr(strrchr(__FILE__, ‘.’), 1);
$phpbb_root_path = ;
 /* includes all the libraries etc. required */
require($phpbb_root_path .”common.php”);
$user->session_begin();
$auth->acl($user->data);
 /* the file with the actual goodies */
require($phpbb_root_path .”includes/functions_user.php”);
 /* All the user data (I think you can set other database fields aswell, these seem to be required )*/
$user_row = array(
‘username’ => “Username”,
‘user_password’ => md5(“Password”), ‘user_email’ => “Email”,
‘group_id’ => $default_group_id,
‘user_timezone’ => ‘1.00’,
‘user_dst’ => 0,
‘user_lang’ => ‘en’,
‘user_type’ => ‘0’,
‘user_actkey’ => ”,
‘user_dateformat’ => ‘d M Y H:i’,
‘user_style’ => $not_sure_what_this_is,
‘user_regdate’ => time(),
);
 /* Now Register user */
$phpbb_user_id = user_add($user_row);

 

Problem is $db is already defined in mcc.

Link to comment
Share on other sites

this was 7+ ytears ago so if i did i have no knoladge of it now

What is it that you need? i.e.

Do you want to replace the McCodes Login/Registration with PHPBB?

Or the other way around?

Or do you want it so if a user registers for the game a user account is already made on the forum and when they log in it logs them into the forum as well?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...