<script type="text/javascript"> <!-- $().ready(function() { // validate registration_form $("#registration_form").validate({ rules: { username: { required: true, minlength: {$mybb->settings['minnamelength']}, maxlength: {$mybb->settings['maxnamelength']}, remote:{ url: "xmlhttp.php?action=username_availability", type: "post", dataType: "json", data: { my_post_key: my_post_key }, }, }, 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>
| {$validator_javascript} <script type="text/javascript" src="{$mybb->asset_url}/jscripts/regvalidator.js?ver=1823"></script>
|