Page Index Toggle Pages: 1
Topic Tools
Normal Topic validating email addresses (Read 3,500 times)
old goat
YaBB Legends (Inactive)
*
Offline



Posts: 2,488
Location: York, UK
Re: validating email addresses
Reply #4 - Oct 1st, 2005 at 12:21pm
Post Tools
thanks Tea-Master - that's whjat I was after! Smiley
  

Please don't PM me for support - I'll only go and ignore it!
Back to top
AIM  
IP Logged
 
Tea-Master
YaBB Legends (Active)
*
Offline



Posts: 3,623
Location: Germany
Re: validating email addresses
Reply #3 - Oct 1st, 2005 at 11:45am
Post Tools
of course. the following is used by Y2.

Code
Select All
SHOW_ERROR  if (EMAIL !~ /[\w\-\.\+]+\@[\w\-\.\+]+\.(\w{2,4}$)/);
SHOW_ERROR  if ((EMAIL =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)|(\.$)/) || (EMAIL !~ /\A.+@\[?(\w|[-.])+\.[a-zA-Z]{2,4}|[0-9]{1,4}\]?\Z/));
 

« Last Edit: Oct 1st, 2005 at 1:03pm by Tea-Master »  

--> also known as Agent Zed Wink
Back to top
 
IP Logged
 
old goat
YaBB Legends (Inactive)
*
Offline



Posts: 2,488
Location: York, UK
Re: validating email addresses
Reply #2 - Oct 1st, 2005 at 6:23am
Post Tools
Part of the process of converting yabb 1 to yabb 2 involves validating the user name for bad characters.
Its not impossible that email addresses stored in another forum's format could contain invalid characters. Does Yabb 1 have any sub to valildate the email address input by a new user, that could be used to check one being imported from another forum during the convert?
  

Please don't PM me for support - I'll only go and ignore it!
Back to top
AIM  
IP Logged
 
Matt Siegman
YaBB Legends (Inactive)
*
Offline



Posts: 3,380
Location: Wichita, KS
Re: validating email addresses
Reply #1 - Oct 1st, 2005 at 6:15am
Post Tools
Huh

???
  

-- Matt Siegman 8) Wish List
Back to top
 
IP Logged
 
old goat
YaBB Legends (Inactive)
*
Offline



Posts: 2,488
Location: York, UK
validating email addresses
Sep 30th, 2005 at 8:34am
Post Tools
is there a sub already in place to validate imported emails?
  

Please don't PM me for support - I'll only go and ignore it!
Back to top
AIM  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top