954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

phpbb Register Intergration

Hi all

Is it possible to intergrate my website to my phpbb forum so that when users register with my site, they also get registered with my forum. If anyone knows how to or if they know any sites that tell you please could you post them here.

Thanks in advance
Cameron

doctorphp
Junior Poster in Training
67 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

I have integrated it once as below.
register.php is page where user register to the site.
and forum is a sub folder for phpbb placed at root.

<?
	/*======================================
		my register.php code goes here
	========================================*/
	
	//--- phpbb code start ------
	echo '<form  method="post"  style="display:none;" name="frmfrm" id="frmfrm" action="forum/ucp.php?mode=login"> 
	<label for="username">Username: </label> <input type="text" name="username" id="username" value="'.$_POST['username_login'].'" size="40" />
	<label for="password">Password: </label><input type="password" name="password" id="password" value="'.$_POST['password_login'].'" size="40" />
	<label for="autologin">Remember Me?: </label><input type="checkbox" name="autologin" id="autologin"  />
	<input type="hidden" value="Log In" name="login" />
	<input type="hidden" name="redirect" value="<strong>../register.php</strong>" />
	</form>	
	<script language="javascript">document.frmfrm.submit();</script>';
?>

What above code do, it will goes to phpbb and user entry will be done for forum and it will be backed to page as shown in bold.

Try this and let me know your result.

vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

I have integrated it once as below. register.php is page where user register to the site. and forum is a sub folder for phpbb placed at root.

<?
	/*======================================
		my register.php code goes here
	========================================*/
	
	//--- phpbb code start ------
	echo '<form  method="post"  style="display:none;" name="frmfrm" id="frmfrm" action="forum/ucp.php?mode=login"> 
	<label for="username">Username: </label> <input type="text" name="username" id="username" value="'.$_POST['username_login'].'" size="40" />
	<label for="password">Password: </label><input type="password" name="password" id="password" value="'.$_POST['password_login'].'" size="40" />
	<label for="autologin">Remember Me?: </label><input type="checkbox" name="autologin" id="autologin"  />
	<input type="hidden" value="Log In" name="login" />
	<input type="hidden" name="redirect" value="<strong>../register.php</strong>" />
	</form>	
	<script language="javascript">document.frmfrm.submit();</script>';
?>

What above code do, it will goes to phpbb and user entry will be done for forum and it will be backed to page as shown in bold.

Try this and let me know your result.

Thanks, I will give it a try

doctorphp
Junior Poster in Training
67 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: