2012-08-01, 08:31 PM
Hi everyone!
I have ben trying to integrate a forum to my site with no success at all!
I want when a member join my site, he gets added to the forum as well, and when he login into my site he also gets logged in the forum too.
for the old members of my site, I can add them to the data base of the forum, just having issues with new members and login part.
here is the signup code for my site:
and the login code is:
Hope you can guide me step by step on how to integrate a MyBB forum to my site ,
I have ben trying to integrate a forum to my site with no success at all!
I want when a member join my site, he gets added to the forum as well, and when he login into my site he also gets logged in the forum too.
for the old members of my site, I can add them to the data base of the forum, just having issues with new members and login part.
here is the signup code for my site:
<table border=0 width=100% cellspacing="5" cellpadding="5" align="center"><tr>
<td colspan=2 align=center>If you only wish to advertise with us and do not wish become an affiliate, check this box <input type=checkbox name="userform[account_type]" value='advertiser' <? userform('account_type')?>><br>Advertiser accounts will not receive paid emails nor will they receive any of the benifits that are given to affiliates</td></tr>
<td>Username:<br><font size=1>Use letters and numbers only</font></td>
<td><input type="text" name="userform[username]" maxlength=16 value="<script language="php">
userform("username");</script>"></td>
</tr><tr>
<td>E-Mail:</td>
<td><input type=hidden name="userform[email]" value="<script language="php"> userform("email");</script>">
<script language="php"> userform("email");</script></td>
</tr><tr>
<td><div align="left">Send emails to:</div></td><td>
<select name=userform[email_setting]>
<script language="php"> new_member_email_setting();</script>
</select>
</td></tr><tr>
<td>First Name:</td>
<td><input type="text" name="userform[first_name]" value="<script language="php">
userform("first_name");</script>"></td>
</tr><tr>
<td>Last Name:</td>
<td>
<input type="text" name="userform[last_name]" value="<script language="php">
userform("last_name");</script>"> </td>
</tr><tr>
<td>Address:</td>
<td>
<input type="text" name="userform[address]" value="<script language="php">
userform("address");</script>"> </td>
</tr><tr>
<td>City:</td>
<td>
<input type="text" name="userform[city]" value="<script language="php">
userform("city");</script>"> </td>
</tr>
<tr>
<td>State:</td>
<td><select name="userform[state]"><option value=''>Please select your state
<script language="php"> new_member_states();</script>
</select>
<br>Other: <br>
<input type="text" name="userform[state_other]" value="<script language="php"> userform("state_other");</script>"></td>
</tr><tr>
<td>Zip Code:</td>
<td><input type="text" name="userform[zipcode]" value="<script language="php">
userform("zipcode");</script>"></td>
</tr>
<tr>
<td>Country:</td>
<td>
<select name="userform[country]"><option value=''>Please select your country
<script language="php"> new_member_countries();</script>
</select>
</td>
</tr>
<tr>
<td>Referred by:</td>
<td><input type=text name=refid value="<script language="php"> referrer();</script>"> <br>(If no referrer, a GoldAffiliate will be assigned)</td>
</tr>
<tr>
<td colspan=2>
<hr>
</td>
</tr><tr>
<td colspan=2 align=center> Select categories of interests to
you:<br><br>
<table border="0" cellspacing="1" cellpadding="1" width="100%">
<script language="php"> new_member_keywords();</script>
</table></td></tr><tr>
<td colspan=2><hr></td>
</tr><tr>
<td colspan=2 align=center>
<select name=userform[pay_type]>
<option value='' selected>Select a payment method
<script language="php"> new_member_paytypes();</script>
</select></td>
</tr><tr>
<td colspan=2 align=center>Payment account ID:<br>
<input type=text size=25 value="<script language="php">
userform("pay_account");</script>" name=userform[pay_account]> </td>
</tr><tr>
<td colspan=2><hr></td>
</tr><tr>
<td>Password:</td>
<td><input type=password name=userform[password]></td>
</tr><tr>
<td>Confirm Password:</td>
<td><input type=password name=userform[confirm_password]></td>
</tr><tr>
<td colspan=2 align=center><input type="submit" value="Signup"></td>
</tr></table></form><br></td></tr></table>
and the login code is:
<p align="center"><b>Log In</b> </p>
<form method=post>
<div align="center">
<table border=0>
<tr>
<td>
<p>Username or eMail address:</p>
</td>
<td>
<input type=text name=username>
</td>
</tr>
<tr>
<td>
<p>Password:</p>
</td>
<td>
<input type=password name=password>
</td>
</tr>
<tr>
<td colspan=2 nowrap>
<p>Use Auto-login
<input type=checkbox checked name=autologin value=1>
<br>
Secure your PHPSESSIONs?
<input type=checkbox checked name=ipsec value=1>
<br>
(not compatible with some Internet providers)<br>
<br>
<input type=submit value="Login" name="submit">
</p>
</td>
</tr>
</table>
</div>
<p align="center"><b><a href="<script language="php"> pages_url();</script>lost_login.php">(Forgot
your password/ID?)</a></b> </p>
</form>
Hope you can guide me step by step on how to integrate a MyBB forum to my site ,