<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>salahuddin66's tech blog</title>
	<atom:link href="http://salahuddin66.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://salahuddin66.wordpress.com</link>
	<description>salahuddin66's tech blog</description>
	<lastBuildDate>Tue, 04 Sep 2007 16:16:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='salahuddin66.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a9ca4fdd05ab52c69919f4634be3af4f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>salahuddin66's tech blog</title>
		<link>http://salahuddin66.wordpress.com</link>
	</image>
			<item>
		<title>configure phpbb with wordpress</title>
		<link>http://salahuddin66.wordpress.com/2007/07/17/configure-phpbb-with-wordpress/</link>
		<comments>http://salahuddin66.wordpress.com/2007/07/17/configure-phpbb-with-wordpress/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 18:54:26 +0000</pubDate>
		<dc:creator>salahuddin66</dc:creator>
				<category><![CDATA[hacked]]></category>

		<guid isPermaLink="false">http://salahuddin66.wordpress.com/2007/07/17/configure-phpbb-with-wordpress/</guid>
		<description><![CDATA[Today I got success to configure phpbb with wordpress.
It will enable the phpbb registered user to login the wordpress blog (after get approve from admin) with same id and password.
I tried with phpBB-2.0.22 and wordpress-2.2.1
Simply after install both in a same database.
create a connections.php  in the includes directory of the phpbb
connections.php
&#60;?php
$con = mysql_connect(&#8220;localhost&#8221;,&#8221;your_username&#8221;,&#8221;your_password&#8221;);
if (!$con)
{
die(&#8216;Could [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salahuddin66.wordpress.com&blog=1324613&post=47&subd=salahuddin66&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I got success to configure phpbb with wordpress.</p>
<p>It will enable the phpbb registered user to login the wordpress blog (after get approve from admin) with same id and password.</p>
<p>I tried with phpBB-2.0.22 and wordpress-2.2.1</p>
<p>Simply after install both in a same database.</p>
<p>create a connections.php  in the <em><strong>includes</strong></em> directory of the phpbb</p>
<p>connections.php</p>
<blockquote><p>&lt;?php<br />
$con = mysql_connect(&#8220;localhost&#8221;,&#8221;your_username&#8221;,&#8221;your_password&#8221;);<br />
if (!$con)<br />
{<br />
die(&#8216;Could not connect: &#8216; . mysql_error());<br />
}<br />
mysql_select_db(&#8220;your_database&#8221;, $con);<br />
?&gt;</p></blockquote>
<p>edit <strong>includes/usercp_register.php</strong> of the phpbb<strong><br />
</strong></p>
<p><strong>around 630 lines</strong> you will find  some line like this</p>
<blockquote><p>/ Get current date<br />
//<br />
$sql = &#8220;INSERT INTO &#8221; . USERS_TABLE . &#8221;    (user_id, &#8230;);</p></blockquote>
<p>Bellow  this line add</p>
<blockquote><p>// added by salahuddin66</p>
<p>include_once(&#8220;connections.php&#8221;);</p>
<p>$query = &#8220;INSERT INTO wp_users (user_login, user_nicename, display_name, user_pass,  user_email, user_registered)  VALUES (&#8216;&#8221; . str_replace(&#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;, $username) . &#8220;&#8216;, &#8216;&#8221; . str_replace(&#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;, $username) . &#8220;&#8216;, &#8216;&#8221;. str_replace(&#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;, $username) . &#8220;&#8216;, &#8216;&#8221; . str_replace(&#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;, $new_password) . &#8220;&#8216;, &#8216;&#8221; . str_replace(&#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;, $email).&#8221;&#8216;, NOW() )&#8221;;</p>
<p>if (!mysql_query($query,$con))<br />
{</p>
<p>die(&#8216;Error: &#8216; . mysql_error());<br />
}<br />
// finish added by salahuddin66</p></blockquote>
<p>done..</p>
<p>Now the users will register for the phpbb forum will also register for the wordpress blog automatically.</p>
<p><strong><em>To enable his wordpress account, wordpress admin need to give him approve/some role.</em></strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/salahuddin66.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/salahuddin66.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salahuddin66.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salahuddin66.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salahuddin66.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salahuddin66.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salahuddin66.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salahuddin66.wordpress.com&blog=1324613&post=47&subd=salahuddin66&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://salahuddin66.wordpress.com/2007/07/17/configure-phpbb-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fde399ced3fab5f49fe7ccd0fdcffb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">salahuddin66</media:title>
		</media:content>
	</item>
	</channel>
</rss>