<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding a user to phpbb3 from an external script</title>
	<atom:link href="http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/</link>
	<description>Your all singing and breakdancing CEO and outside boxer</description>
	<lastBuildDate>Thu, 02 Sep 2010 01:02:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Promi</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1133</link>
		<dc:creator>Promi</dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1133</guid>
		<description>and added a simple string instead:

$phpbb_root_path = &#039;phpBB3/&#039;;</description>
		<content:encoded><![CDATA[<p>and added a simple string instead:</p>
<p>$phpbb_root_path = &#8216;phpBB3/&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Promi</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1132</link>
		<dc:creator>Promi</dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1132</guid>
		<description>The problem solved:
I removed the
$phpbb_root_path = (defined(’PHPBB_ROOT_PATH’)) ? PHPBB_ROOT_PATH : ‘./’;

part from the code</description>
		<content:encoded><![CDATA[<p>The problem solved:<br />
I removed the<br />
$phpbb_root_path = (defined(’PHPBB_ROOT_PATH’)) ? PHPBB_ROOT_PATH : ‘./’;</p>
<p>part from the code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Promi</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1128</link>
		<dc:creator>Promi</dc:creator>
		<pubDate>Tue, 27 Apr 2010 11:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1128</guid>
		<description>This is the latest version and the browser cannot show the page (HTTP500):

define(&#039;IN_PHPBB&#039;, true);
session_start();
global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;


/* the file with the actual goodies */
$phpbb_root_path = (defined(&#039;PHPBB_ROOT_PATH&#039;)) ? PHPBB_ROOT_PATH : &#039;./&#039;;
$phpEx = substr(strrchr(__FILE__, &#039;.&#039;), 1);
include($phpbb_root_path . &quot;includes/functions_user.&quot; . $phpEx);
include($phpbb_root_path . &quot;includes/functions.&quot; . $phpEx);
include($phpbb_root_path . &quot;common.&quot; . $phpEx);


// Start session management
$user-&gt;session_begin();
$auth-&gt;acl($user-&gt;data);
$user-&gt;setup();


$username = &quot;proba&quot;;
$password = &quot;proba&quot;;
$email = &quot;email@eml.hu&quot;;
$user_inactive_reason = 0;
$user_inactive_time = 0;
$user_type = USER_NORMAL;
$user_row = array(
&quot;username&quot; =&gt; $username,
&quot;user_password&quot; =&gt; phpbb_hash($password),
&quot;user_email&quot; =&gt; $email,
&quot;group_id&quot; =&gt; 2, #Registered users group
&quot;user_timezone&quot; =&gt; 1.00,
&quot;user_dst&quot; =&gt; 1,
&quot;user_lang&quot; =&gt; &quot;hu&quot;,
&quot;user_type&quot; =&gt; $user_type,
&quot;user_actkey&quot; =&gt; &#039;&#039;,
&quot;user_dateformat&quot; =&gt; &quot;D M d, Y g:i a&quot;,
&quot;user_style&quot; =&gt; 1,
&quot;user_regdate&quot; =&gt; time(),
&quot;user_inactive_reason&quot;	=&gt; $user_inactive_reason,
&quot;user_inactive_time&quot;	=&gt; $user_inactive_time,
);
/* Now Register user */
$phpbb_user_id = user_add($user_row);

echo &quot;finished&quot;;</description>
		<content:encoded><![CDATA[<p>This is the latest version and the browser cannot show the page (HTTP500):</p>
<p>define(&#8216;IN_PHPBB&#8217;, true);<br />
session_start();<br />
global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;</p>
<p>/* the file with the actual goodies */<br />
$phpbb_root_path = (defined(&#8216;PHPBB_ROOT_PATH&#8217;)) ? PHPBB_ROOT_PATH : &#8216;./&#8217;;<br />
$phpEx = substr(strrchr(__FILE__, &#8216;.&#8217;), 1);<br />
include($phpbb_root_path . &#8220;includes/functions_user.&#8221; . $phpEx);<br />
include($phpbb_root_path . &#8220;includes/functions.&#8221; . $phpEx);<br />
include($phpbb_root_path . &#8220;common.&#8221; . $phpEx);</p>
<p>// Start session management<br />
$user-&gt;session_begin();<br />
$auth-&gt;acl($user-&gt;data);<br />
$user-&gt;setup();</p>
<p>$username = &#8220;proba&#8221;;<br />
$password = &#8220;proba&#8221;;<br />
$email = &#8220;email@eml.hu&#8221;;<br />
$user_inactive_reason = 0;<br />
$user_inactive_time = 0;<br />
$user_type = USER_NORMAL;<br />
$user_row = array(<br />
&#8220;username&#8221; =&gt; $username,<br />
&#8220;user_password&#8221; =&gt; phpbb_hash($password),<br />
&#8220;user_email&#8221; =&gt; $email,<br />
&#8220;group_id&#8221; =&gt; 2, #Registered users group<br />
&#8220;user_timezone&#8221; =&gt; 1.00,<br />
&#8220;user_dst&#8221; =&gt; 1,<br />
&#8220;user_lang&#8221; =&gt; &#8220;hu&#8221;,<br />
&#8220;user_type&#8221; =&gt; $user_type,<br />
&#8220;user_actkey&#8221; =&gt; &#8221;,<br />
&#8220;user_dateformat&#8221; =&gt; &#8220;D M d, Y g:i a&#8221;,<br />
&#8220;user_style&#8221; =&gt; 1,<br />
&#8220;user_regdate&#8221; =&gt; time(),<br />
&#8220;user_inactive_reason&#8221;	=&gt; $user_inactive_reason,<br />
&#8220;user_inactive_time&#8221;	=&gt; $user_inactive_time,<br />
);<br />
/* Now Register user */<br />
$phpbb_user_id = user_add($user_row);</p>
<p>echo &#8220;finished&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Promi</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1127</link>
		<dc:creator>Promi</dc:creator>
		<pubDate>Tue, 27 Apr 2010 08:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1127</guid>
		<description>It writes the following error:

The config. file could not be found.
Click here to install phpBB</description>
		<content:encoded><![CDATA[<p>It writes the following error:</p>
<p>The config. file could not be found.<br />
Click here to install phpBB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Promi</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1126</link>
		<dc:creator>Promi</dc:creator>
		<pubDate>Tue, 27 Apr 2010 08:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1126</guid>
		<description>I have the above code, but something does not work pls help me

define(&#039;IN_PHPBB&#039;, true);

global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;

/* the file with the actual goodies */
$phpEx = substr(strrchr(__FILE__, &quot;.&quot;), 1);
$phpbb_root_path = &quot;phpBB3/&quot;;
include($phpbb_root_path . &quot;includes/functions_user.&quot; . $phpEx);
include($phpbb_root_path . &quot;includes/functions.&quot; . $phpEx);
include($phpbb_root_path . &quot;common.&quot; . $phpEx);

// Start session management
$user-&gt;session_begin();
$auth-&gt;acl($user-&gt;data);
$user-&gt;setup();


$username = &quot;proba&quot;;
$password = &quot;proba&quot;;
$email = &quot;email@eml.hu&quot;;
$user_inactive_reason = 0;
$user_inactive_time = 0;
$user_type = USER_NORMAL;
$user_row = array(
&quot;username&quot; =&gt; $username,
&quot;user_password&quot; =&gt; phpbb_hash($password),
&quot;user_email&quot; =&gt; $email,
&quot;group_id&quot; =&gt; 2, #Registered users group
&quot;user_timezone&quot; =&gt; 1.00,
&quot;user_dst&quot; =&gt; 1,
&quot;user_lang&quot; =&gt; &quot;hu&quot;,
&quot;user_type&quot; =&gt; $user_type,
&quot;user_actkey&quot; =&gt; &#039;&#039;,
&quot;user_dateformat&quot; =&gt; &quot;D M d, Y g:i a&quot;,
&quot;user_style&quot; =&gt; 1,
&quot;user_regdate&quot; =&gt; time(),
&quot;user_inactive_reason&quot;	=&gt; $user_inactive_reason,
&quot;user_inactive_time&quot;	=&gt; $user_inactive_time,
);
/* Now Register user */
$phpbb_user_id = user_add($user_row);

echo &quot;finished&quot;;</description>
		<content:encoded><![CDATA[<p>I have the above code, but something does not work pls help me</p>
<p>define(&#8216;IN_PHPBB&#8217;, true);</p>
<p>global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;</p>
<p>/* the file with the actual goodies */<br />
$phpEx = substr(strrchr(__FILE__, &#8220;.&#8221;), 1);<br />
$phpbb_root_path = &#8220;phpBB3/&#8221;;<br />
include($phpbb_root_path . &#8220;includes/functions_user.&#8221; . $phpEx);<br />
include($phpbb_root_path . &#8220;includes/functions.&#8221; . $phpEx);<br />
include($phpbb_root_path . &#8220;common.&#8221; . $phpEx);</p>
<p>// Start session management<br />
$user-&gt;session_begin();<br />
$auth-&gt;acl($user-&gt;data);<br />
$user-&gt;setup();</p>
<p>$username = &#8220;proba&#8221;;<br />
$password = &#8220;proba&#8221;;<br />
$email = &#8220;email@eml.hu&#8221;;<br />
$user_inactive_reason = 0;<br />
$user_inactive_time = 0;<br />
$user_type = USER_NORMAL;<br />
$user_row = array(<br />
&#8220;username&#8221; =&gt; $username,<br />
&#8220;user_password&#8221; =&gt; phpbb_hash($password),<br />
&#8220;user_email&#8221; =&gt; $email,<br />
&#8220;group_id&#8221; =&gt; 2, #Registered users group<br />
&#8220;user_timezone&#8221; =&gt; 1.00,<br />
&#8220;user_dst&#8221; =&gt; 1,<br />
&#8220;user_lang&#8221; =&gt; &#8220;hu&#8221;,<br />
&#8220;user_type&#8221; =&gt; $user_type,<br />
&#8220;user_actkey&#8221; =&gt; &#8221;,<br />
&#8220;user_dateformat&#8221; =&gt; &#8220;D M d, Y g:i a&#8221;,<br />
&#8220;user_style&#8221; =&gt; 1,<br />
&#8220;user_regdate&#8221; =&gt; time(),<br />
&#8220;user_inactive_reason&#8221;	=&gt; $user_inactive_reason,<br />
&#8220;user_inactive_time&#8221;	=&gt; $user_inactive_time,<br />
);<br />
/* Now Register user */<br />
$phpbb_user_id = user_add($user_row);</p>
<p>echo &#8220;finished&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudio Walser</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1094</link>
		<dc:creator>Claudio Walser</dc:creator>
		<pubDate>Sun, 03 Jan 2010 12:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1094</guid>
		<description>Nice, this works perfect.
Another problem i have is, if my user change the password in my external script. Has anyone a solution for changing the password in phpBB too?</description>
		<content:encoded><![CDATA[<p>Nice, this works perfect.<br />
Another problem i have is, if my user change the password in my external script. Has anyone a solution for changing the password in phpBB too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ceb P</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1084</link>
		<dc:creator>Ceb P</dc:creator>
		<pubDate>Thu, 03 Dec 2009 03:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1084</guid>
		<description>Look at the wiki for more infos:
http://wiki.phpbb.com/User_add</description>
		<content:encoded><![CDATA[<p>Look at the wiki for more infos:<br />
<a href="http://wiki.phpbb.com/User_add" rel="nofollow">http://wiki.phpbb.com/User_add</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg B</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1061</link>
		<dc:creator>Greg B</dc:creator>
		<pubDate>Fri, 16 Oct 2009 18:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1061</guid>
		<description>Is there a phpbb function to update a user password after it has been created?</description>
		<content:encoded><![CDATA[<p>Is there a phpbb function to update a user password after it has been created?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Rowe</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-1000</link>
		<dc:creator>Randy Rowe</dc:creator>
		<pubDate>Tue, 23 Jun 2009 17:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-1000</guid>
		<description>Oops, cut and paste error on the last echo. The variable should be $valid_username instead of $valid_password. :-)</description>
		<content:encoded><![CDATA[<p>Oops, cut and paste error on the last echo. The variable should be $valid_username instead of $valid_password. <img src='http://www.mrkirkland.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Rowe</title>
		<link>http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/comment-page-1/#comment-999</link>
		<dc:creator>Randy Rowe</dc:creator>
		<pubDate>Tue, 23 Jun 2009 16:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrkirkland.com/adding-a-user-to-phpbb3-from-an-external-script/#comment-999</guid>
		<description>This reply is to Ramon Fincken and the code that is posted there.
I don&#039;t have a login to post a reply there so I&#039;ll post it here.

After the line:

email  = &#039;email_here&#039;; // Please validate this email yourself ! Phpbb will accept non-valid emails. 

Adding this code will make phpBB3 verify the items that were input:

$valid_email = validate_email($email);
if ($valid_email) {
        echo &quot;Your email address could not be used because &quot;.$valid_email.&quot;.\n&quot;;
        exit;
} else {
        $valid_password = validate_password($password);
        if ($valid_password) {
                echo &quot;Your password could not be used because &quot;.$valid_password.&quot;.\n&quot;;
                exit;
        } else {
                $valid_username = validate_username($username);
                if ($validate_username) {
                        echo &quot;Your username could not be used because &quot;.$valid_password.&quot;.\n&quot;;
                        exit;
                }
        }
}


Hope the quotes make it through ok.  Thanks for the pointers to get this started.</description>
		<content:encoded><![CDATA[<p>This reply is to Ramon Fincken and the code that is posted there.<br />
I don&#8217;t have a login to post a reply there so I&#8217;ll post it here.</p>
<p>After the line:</p>
<p>email  = &#8216;email_here&#8217;; // Please validate this email yourself ! Phpbb will accept non-valid emails. </p>
<p>Adding this code will make phpBB3 verify the items that were input:</p>
<p>$valid_email = validate_email($email);<br />
if ($valid_email) {<br />
        echo &#8220;Your email address could not be used because &#8220;.$valid_email.&#8221;.\n&#8221;;<br />
        exit;<br />
} else {<br />
        $valid_password = validate_password($password);<br />
        if ($valid_password) {<br />
                echo &#8220;Your password could not be used because &#8220;.$valid_password.&#8221;.\n&#8221;;<br />
                exit;<br />
        } else {<br />
                $valid_username = validate_username($username);<br />
                if ($validate_username) {<br />
                        echo &#8220;Your username could not be used because &#8220;.$valid_password.&#8221;.\n&#8221;;<br />
                        exit;<br />
                }<br />
        }<br />
}</p>
<p>Hope the quotes make it through ok.  Thanks for the pointers to get this started.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
