The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
September 08, 2010, 02:59:27 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,435 Posts in 565 Topics by 943 Members
Latest Member: ValcoroHonrag
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto and iRealty v.2.x - 3.x
| |-+  General iRealty Discussions
| | |-+  User registration - making email field accept dashes in domains
« previous next »
Pages: [1] Print
Author Topic: User registration - making email field accept dashes in domains  (Read 684 times)
YvesDL
Newbie
*

Karma: 0
Posts: 10


View Profile WWW
« on: November 27, 2006, 09:26:47 PM »

Hi all,

I came upon what was a little problem in the email domain field of the user registration form: it would't accept dashes "-" in the domain name.  I asked for support from the team and got my solution back today.  Tought I'd share cause this might be usefull to many.  So here's the transcript:

Change the old line:
 
var r = f['e-mail'].value.match(/\w+@(\w+\.)+\w{2,4}/);
 
to the below:
 
var r = f['e-mail'].value.match(/[^@]+@([a-z\d]+(-[a-z\d])*\.)+[a-z\d]{2,4}/);
 
in the /system/modules/users/user/templates/{name of the theme}/registration_form.tpl file.


And thanks Lena.

YvesDL
Logged

Pain doesn't come from change, but from resistance to change. - Anonymous
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!