Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Disable special characters in registration



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Shadow

avatar
Administrator
Administrator


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



- 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"
    })
});


- Preview





© PunBB Design


If you have any questions related to this topic create a topic with the following title:
Disable special characters in registration

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

2
Offline

  FrOsTyXi

avatar
V.I.P. Member
V.I.P. Member
I like this but i use a script that don't allow numbers but to incorporate no special characters and numbers would be awesome! Is that a possibility?

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

3
Offline

  Michael_vx

avatar
Punbb Junior
Punbb Junior
great Script
could i ask for more info i like to know how to Castoum chracters as the way as i like
thanks

Powered by PunBB
Currently 0 users have thanked Michael_vx for this post:

4
Offline

  cool

avatar
Newbie
Newbie
thanks

Powered by PunBB
Currently 0 users have thanked cool for this post:

5
Offline

  Andrei34

avatar
Punbb Rookie
Punbb Rookie
very good tuto thx

Powered by PunBB
Currently 0 users have thanked Andrei34 for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum