MyBB Community Forums

Full Version: [Release] Quick Register Mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This Mod will allow you to put a quick register page onto your website.

Please Note!!! In Order for this to work, you have to go into the ACP, Settings, and disable Captcha. In Future Versions I will try to include Captcha. At the moment It doesen't work.

All You do is simply add in this code:

<form action="[color=red]url of your forum/member.php[/color]" method="post" id="registration_form"><input type="text" style="visibility: hidden;" value="" name="regcheck1" /><input type="text" style="visibility: hidden;" value="true" name="regcheck2" />

<!--Main Account Details-->
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Registration</strong></td>
</tr>
<tr>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>Account Details</strong></legend>
<table cellspacing="0" cellpadding="4" width="100%">
<tr>
<td colspan="2"><span class="smalltext"><label for="username">Username:</label></span></td>
</tr>
<tr>
<td colspan="2"><input type="text" class="textbox" name="username" id="username" style="width: 100%" value="" /></td>
</tr>
<!-- start: member_register_password -->
<tr>
<td><span class="smalltext">Password:</span></td>
<td><span class="smalltext">Confirm Password:</span></td>
</tr>
<tr>
<td><input type="password" class="textbox" name="password" id="password" style="width: 100%" /></td>
<td><input type="password" class="textbox" name="password2" id="password2" style="width: 100%" /></td>
</tr>
<tr>
	<td colspan="2" style="display: none;" id="password_status">&nbsp;</td>
</tr>

<!-- end: member_register_password -->
<tr>
<td><span class="smalltext"><label for="email">Email:</label></span></td>
<td><span class="smalltext"><label for="email2">Confirm Email:</label></span></td>
</tr>
<tr>
<td><input type="text" class="textbox" name="email" id="email" style="width: 100%" maxlength="50" value="" /></td>
<td><input type="text" class="textbox" name="email2" id="email2" style="width: 100%" maxlength="50" value="" /></td>
</tr>
<tr>
	<td colspan="2" style="display: none;" id="email_status">&nbsp;</td>
</tr>
</table>
</fieldset>

<!--End Main Account Details-->

<div align="center">
<input type="hidden" name="step" value="registration" />
<input type="hidden" name="action" value="do_register" />
<input type="submit" class="button" name="regsubmit" value="Submit Registration!" />
</div>
</form>

<script type="text/javascript">
<!--
	regValidator = new FormValidator('registration_form');
	regValidator.register('username', 'notEmpty', {failure_message:'You must enter a username'});
    regValidator.register('email', 'regexp', {match_field:'email2', regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'You need to enter a valid email address'});
	regValidator.register('email2', 'matches', {match_field:'email', status_field:'email_status', failure_message:'You need to enter the same email address again'});
	regValidator.register('referrer', 'ajax', {url:'xmlhttp.php?action=username_exists', loading_message:'Checking if referrer username exists.'});
	regValidator.register('imagestring', 'ajax', {url:'xmlhttp.php?action=validate_captcha', extra_body: 'imagehash', loading_message:'Checking whether or not you entered the correct image verification code.', failure_message:'You need to enter the text in the image above'});
	regValidator.register('password', 'length', {match_field:'password2', min: 6, failure_message:'Your password must be 6 or more characters long'});
	regValidator.register('password2', 'matches', {match_field:'password', status_field:'password_status', failure_message:'The passwords you enter must match'});
	regValidator.register('username', 'length', {min: 3, max: 30, failure_message:'Usernames must be between 3 and 30 characters long'});

	regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'Checking if username is available'}); // needs to be last
// -->
</script>
Quick Register Mod &copy; <a href="http://www.lyndonstudios.com">Lyndon Studios</a>

Remember to Change the red text to your forum's URL.

You can find a live demo here: http://www.lyndonstudios.com/mybb-regist.../login.php[/php]
your put the code in the middle of [php] and you put a screnshot please
Live demo: lyndonstudios.com/mybb-register-script/login.php
put the code in code tags, it's easier to read. don't put in php tags because it's not php
@okej my mistake - to delete
that's why it has to be disabled
Hmm it has to be solution with enabled captcha
Like I said, v1.1 will have captcha