The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Request: I believe this can be easily done but the problem is...
:cry: I do not know how :banana:
i've just bought and installed HiveMail on my website and have it integrated with my vbulletin. so now my user will automatically have an e-mail account setup for them once they register on my forum with the same user name and password... that sounds great and that's really what i was dreaming. But then i realize I am exposed to a huge problem!!! I am going to have a international forum where people from everywhere are welcome(mainly asians) probably they are going to use all different languages such as Chinese,Japanese,Korean ect. for their username. As you all know e-mail address can only contain letter from alphabet and Arabic numerals, obviously none of those asian languages would work. for example,if one of my user register as ijij(username), then he will get a e-mail address like this: ijij@mysite.com, any e-mail address look like that is totally useless. Here comes my request, can someone make me a hack that restricts usernames, so I can prevent my users have their username registered in different languages that contain illegal letters? it would be easier if we limit the range...let's say, first of all, no space is allowed, user can only register their username with following a to z, 0 to 9 and something else that can be used in e-mail address... Please help, really painful problem :cross-eyed: |
#2
|
||||
|
||||
by the way, adding unwanted chars to admin cp/settings/illegal usernames doesn't work for me at all, there are thousands of individual characters just in one asian language, each character function as an "a" or "z"or whatever...
|
#3
|
|||
|
|||
Modify the username check used during registration to make sure only charaters from an array you define are used. A pre-processor to the built in one or mod the internal. I'd prefer pre-processing with a hack to moddin' original code. A nice tight loop to check the username and approve or bail out with a default invalid username message should do it.
|
#4
|
||||
|
||||
Quote:
thank you, but sorry i still don't know how to do it. |
#5
|
|||
|
|||
Define your list of approved charaters and I'll see wot I can do. It does not seem like a big deal...Hope I don't eat those words!
|
#6
|
||||
|
||||
Quote:
lol. thank you! you guys are great. :banana: |
#7
|
|||
|
|||
You forgot the list of charaters you want to allow.
|
#8
|
||||
|
||||
sorry about that, the list is simple:
first, no space in front, end or in-between of username. seond, username may only contain alphanumeric characters, underscores (_) and dots (.), must start with a letter(not a number) and must be a minimum length of 2 characters. that means only those letters are allowed in username: a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y, z and the numbers 0,1,2,3,4,5,6,7,8,9, and "_ " " . " |
#9
|
|||
|
|||
Cool, another cup of coffee and I'll try it out.
As I said, if I don't hit a wall and eat my words, you'll have something in a couple hours. |
#10
|
||||
|
||||
That's very nice of you! thank you.
by the way, i am not sure if my list covered everything, just follow the basic rules for an e-mail address. cheers! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|