Melding PHPBB and WordPress registration
-
Hi,
I’m creating a news site using wordpress and I want to create a single registration page which will sign the user up to both wordpress and phpbb with the same username and password. I can then easily log both users in with a bridged login form. My problem is this:
WordPress creates a password for the user, whereas phpbb requires the user to set a password.
It’s mandatory that both of these password be the same. I suppose another possibility is to just use the wordpress registration form and inject the variables to the phpbb database alongside the wordpress database and skip phpbb’s registration altogether.
The code I have for my phpbb registration is this:
<FORM action="<?="https://" . $_SERVER['SERVER_NAME'] . "/forum/profile.php"?>" method=post>
<h3 align="center"><font size="6">Register</font></h3>
<div align="center">
<center>
<table border="1" width="50%">
<tr>
<td width="50%">Username:</td>
<td width="50%"> <INPUT class=post style="WIDTH: 200px" maxLength=25 size=25 name=username></td>
</tr>
<tr>
<td width="50%">E-mail address:</td>
<td width="50%"> <INPUT class=post style="WIDTH: 200px" maxLength=255 size=25 name=email></td>
</tr>
<tr>
<td width="50%">Password:</td>
<td width="50%"> <INPUT class=post style="WIDTH: 200px" type=password maxLength=32 size=25 value="" name="new_password"></td>
</tr>
<tr>
<td width="50%">Confirm password:</td>
<td width="50%"> <INPUT class=post style="WIDTH: 200px" type=password maxLength=32 size=25 value="" name="password_confirm"></td>
</tr>
</table>
</FORM>(I got this code from the phpbb forums – I have yet to clean it up)
You can see that wordpress and phpbb require the same basic information (Username, email, password [sorta]) to create a user.
- The topic ‘Melding PHPBB and WordPress registration’ is closed to new replies.