0

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

Edited by doctorphp: n/a

2
Contributors
2
Replies
5
Views
7 Years
Discussion Span
Last Post by doctorphp
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" /><br /><br />
	<label for="password">Password: </label><input type="password" name="password" id="password" value="'.$_POST['password_login'].'" size="40" /><br /><br />
	<label for="autologin">Remember Me?: </label><input type="checkbox" name="autologin" id="autologin"  /><br /><br />
	<input type="hidden" value="Log In" name="login" />
	<input type="hidden" name="redirect" value="[B]../register.php[/B]" />
	</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.

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" /><br /><br />
	<label for="password">Password: </label><input type="password" name="password" id="password" value="'.$_POST['password_login'].'" size="40" /><br /><br />
	<label for="autologin">Remember Me?: </label><input type="checkbox" name="autologin" id="autologin"  /><br /><br />
	<input type="hidden" value="Log In" name="login" />
	<input type="hidden" name="redirect" value="[B]../register.php[/B]" />
	</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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.