2014-12-27, 12:06
Tutorial: Disable special characters in registration |
With this script, new users will have to follow the next conditions: "Name must be at least 3 characters and start with letter or underscore. Only allowed to use letters, numbers, punctuation and underscores"
--> Tutorials, tips and tricks <--
Disable special characters in registration
Disable special characters in registration
1º - Javascript
Placement In all pages
- Code:
[panda=js]$(function () {
"/register" == location.pathname && $("#username_reg").attr({
pattern: "^[^\\d\\.]([\\.\\w\\d]+){2,}",
title: "Name must be at least 3 characters and start with letter or underscore. Only allowed to use letters, numbers, punctuation and underscores"
})
});
2º - Preview
© PunBB Design
If you have any questions related to this topic create a topic with the following title: Disable special characters in registration |