<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" 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>Mon, 01 Aug 2011 04:16:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='salahuddin66.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a9ca4fdd05ab52c69919f4634be3af4f?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>salahuddin66's tech blog</title>
		<link>http://salahuddin66.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://salahuddin66.wordpress.com/osd.xml" title="salahuddin66&#039;s tech blog" />
	<atom:link rel='hub' href='http://salahuddin66.wordpress.com/?pushpress=hub'/>
		<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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salahuddin66.wordpress.com&amp;blog=1324613&amp;post=47&amp;subd=salahuddin66&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br /><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/gofacebook/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salahuddin66.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salahuddin66.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=1324613&amp;post=47&amp;subd=salahuddin66&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></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>
