2015-01-01, 01:44 AM
I got this weird problem with registration. I "solved" it by removing some javascript from the member_register template. I tried to revert the template back to default MyBB template as well, still same problem. I tried to replace the member.php file, still same problem.
After removing the above script, I could finally register. Before I removed it, the usernamebox would be invalid no matter what I typed. Well, if it was valid, it would be invalid without a message. If it was invalid, it would give the right invalid reason.
If anyone could help me solve this, it would be greatly appreciated!
<script type="text/javascript">
<!--
$().ready(function() {
// validate registration_form
$("#registration_form").validate({
rules: {
email: {
required: true,
email: true,
},
email2: {
required: true,
email: true,
equalTo: "#email"
},
},
messages: {
username: {
minlength: "{$lang->js_validator_username_length}",
maxlength: "{$lang->js_validator_username_length}",
},
email: "{$lang->js_validator_invalid_email}",
email2: "{$lang->js_validator_email_match}",
}
});
{$validator_extra}
});
// -->
</script>
After removing the above script, I could finally register. Before I removed it, the usernamebox would be invalid no matter what I typed. Well, if it was valid, it would be invalid without a message. If it was invalid, it would give the right invalid reason.
If anyone could help me solve this, it would be greatly appreciated!