Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2003, 11:09 AM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:
Reply With Quote
  #2  
Old 04-01-2003, 11:22 AM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #3  
Old 04-01-2003, 11:44 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-01-2003, 11:47 AM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:44 AM noppid said this in Post #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.

thank you, but sorry i still don't know how to do it.
Reply With Quote
  #5  
Old 04-01-2003, 11:53 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 04-01-2003, 11:55 AM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:53 AM noppid said this in Post #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!

lol. thank you! you guys are great. :banana:
Reply With Quote
  #7  
Old 04-01-2003, 11:59 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You forgot the list of charaters you want to allow.
Reply With Quote
  #8  
Old 04-01-2003, 12:08 PM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 "_ " " . "
Reply With Quote
  #9  
Old 04-01-2003, 12:12 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 04-01-2003, 12:16 PM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05940 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete