Vergleich member_register - 1.8.9 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 2Zeile 2
<head>
<title>{$mybb->settings['bbname']} - {$lang->registration}</title>
{$headerinclude}

<head>
<title>{$mybb->settings['bbname']} - {$lang->registration}</title>
{$headerinclude}

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/validate/jquery.validate.min.js?ver=1804"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/validate/jquery.validate.min.js?ver=1821"></script>

</head>
<body>
{$header}

</head>
<body>
{$header}

Zeile 123Zeile 123
<input type="submit" class="button" name="regsubmit" value="{$lang->submit_registration}" />
</div>
</form>

<input type="submit" class="button" name="regsubmit" value="{$lang->submit_registration}" />
</div>
</form>

<script type="text/javascript">
$(document).ready(function() {
$("#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}",
},
errorPlacement: function(error, element) {
if(element.is(':checkbox') || element.is(':radio'))
error.insertAfter($('input[name="' + element.attr('name') + '"]').last().next('span'));
else
error.insertAfter(element);
}
});

{$validator_extra}
});
</script>

{$validator_javascript}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/regvalidator.js?ver=1823"></script>














































{$footer}
</body>
</html>

{$footer}
</body>
</html>