Comments on: Adding a user to phpbb3 from an external script http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/ (mainly) Tokyo based developer and founder Thu, 04 Jun 2015 00:25:00 +0000 hourly 1 https://wordpress.org/?v=4.4.2 By: Mark P http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-247562 Sat, 14 Feb 2015 19:14:07 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-247562 the question is regarding here ‘user_actkey’ => ”, using 1 double quote? or 2 single quote please clear this up, because it has no value indicated. Thanks

]]>
By: kevin http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-21117 Wed, 15 Jan 2014 17:25:30 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-21117 i using this script and it works but there is one trouble for the password integration … it hashed like phpbb_hash do but when i want to login i wont reconize my pass

its like phpbb_hash makes a random salt in the password

Greetings , kevin

]]>
By: Alex http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-184 Tue, 16 Apr 2013 02:30:40 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-184 Hello SangPetualang,

I tried your modified code and it works fine for me. Thank you to all here.

]]>
By: SangPetualang http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-183 Sun, 01 May 2011 06:59:16 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-183 i mix some codes given by all comment here ..
this work for me:

// get some functions from phpBB3
define(‘IN_PHPBB’, true);
$phpbb_root_path = ‘../phpBB/’;
$phpEx = substr(strrchr(__FILE__, ‘.’), 1);
include($phpbb_root_path . ‘common.’ . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
include($phpbb_root_path .’includes/functions_user.php’);
//$user->setup();

$user_row = array(
‘username’ => ‘testtest’,
‘user_password’ => md5(‘test’),
‘user_email’ => ‘test@test.com’,
‘group_id’ => 2,
‘user_timezone’ => 0,
‘user_dst’ => 1,
‘user_lang’ => ‘en’,
‘user_type’ => 0,
‘user_actkey’ => ”,
‘user_dateformat’ => ‘D M d, Y g:i a’,
‘user_style’ => 1,
‘user_regdate’ => time(),
);
/* Now Register user */
$phpbb_user_id = user_add($user_row);
echo $phpbb_user_id.’ finished’;

]]>
By: ganesh http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-182 Fri, 22 Apr 2011 07:33:25 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-182 Where i paste that code. I need help from you

]]>
By: Mario http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-181 Fri, 07 Jan 2011 16:00:36 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-181 Very Useful, tnx a lot!

]]>
By: WebVeins.in http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-180 Wed, 24 Nov 2010 10:00:47 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-180 I am already using the same code. Everything is working fine. But it does not send any confirmation email to the registering user. But when i try to send register from phpBB, it does. What should I do. Please help me get out of this situation.

]]>
By: Promi http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-179 Thu, 29 Apr 2010 07:55:15 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-179 and added a simple string instead:

$phpbb_root_path = ‘phpBB3/’;

]]>
By: Promi http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-178 Thu, 29 Apr 2010 07:44:08 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-178 The problem solved:
I removed the
$phpbb_root_path = (defined(’PHPBB_ROOT_PATH’)) ? PHPBB_ROOT_PATH : ‘./’;

part from the code

]]>
By: Promi http://mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-177 Tue, 27 Apr 2010 11:14:05 +0000 http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-177 This is the latest version and the browser cannot show the page (HTTP500):

define(‘IN_PHPBB’, true);
session_start();
global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;

/* the file with the actual goodies */
$phpbb_root_path = (defined(‘PHPBB_ROOT_PATH’)) ? PHPBB_ROOT_PATH : ‘./’;
$phpEx = substr(strrchr(__FILE__, ‘.’), 1);
include($phpbb_root_path . “includes/functions_user.” . $phpEx);
include($phpbb_root_path . “includes/functions.” . $phpEx);
include($phpbb_root_path . “common.” . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

$username = “proba”;
$password = “proba”;
$email = “email@eml.hu”;
$user_inactive_reason = 0;
$user_inactive_time = 0;
$user_type = USER_NORMAL;
$user_row = array(
“username” => $username,
“user_password” => phpbb_hash($password),
“user_email” => $email,
“group_id” => 2, #Registered users group
“user_timezone” => 1.00,
“user_dst” => 1,
“user_lang” => “hu”,
“user_type” => $user_type,
“user_actkey” => ”,
“user_dateformat” => “D M d, Y g:i a”,
“user_style” => 1,
“user_regdate” => time(),
“user_inactive_reason” => $user_inactive_reason,
“user_inactive_time” => $user_inactive_time,
);
/* Now Register user */
$phpbb_user_id = user_add($user_row);

echo “finished”;

]]>