Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localize User Registration pageLocalize User Registration page
Previous
 
Next
New Post
3/14/2008 3:34 PM
 

Hi,

I have 2 questions related to user registration.

1. Where is the user registration page located?

2. I want to disallow some public email addresses to register in dotnetnuke. Can it be done? For example, when the user registers with yahoo or hotmail email accounts, an error message will be displayed and inform him the email entered is not valid for registration.

Thank you for your help!

-Oliver

 
New Post
3/14/2008 4:41 PM
 
  1. the registration page is dynamically created from various controls.
  2. you can alter the regular expression used to validate email addresses, this will be the only option. Use a dedicated registration page with a message sbout invalid addresses above.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/14/2008 11:06 PM
 

Oliver Chen wrote

2. I want to disallow some public email addresses to register in dotnetnuke. Can it be done? For example, when the user registers with yahoo or hotmail email accounts, an error message will be displayed and inform him the email entered is not valid for registration.

Oliver,

Regarding your second question, how about the following?:

1. Fix the Regular Expression used to validate new users email addresses:

This parameter is within the User Settings page, under Admin - User Accounts and on the lower right click the link.

The parameter is called Email Address Validation and is the fourth before the end of the list. It contains the following regex:

\b[a-zA-Z0-9._%\-+']+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,4}\b

If what you wish is to filter domains like 'yahoo', 'hotmail' or 'gmail' after the @ char, then you must add the following subexpression right there:
(?i)(?!yahoo|hotmail|gmail)

...the final regex will look like this:

\b[a-zA-Z0-9._%\-+']+@(?i)(?!yahoo|hotmail|gmail)[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,4}\b

(click on 'Update' ;-)


2. Modify the messages related to the email address handling during registration:

It is important that you inform your user what type of email addresses you will allow, and if he enters a wrong address, you should explain to him that he tried to use one of those email addresses that are not allowed. If your default language is en-US, those messages are inside:

  • Directory: admin\Users\App_LocalResources
  • File: User.ascx.resx

Within this file look for the following text resources and modify their values, appending what is in italic and bold.

  • Resource Name: 'Value and appended value'
  • UserInfo_Email.Text: 'Email Address: <br>(Do not use a public email address)'
  • UserInfo_Email.Help: 'Enter a valid Email address. Please do not use a public email address, like Yahoo, Hotmail or Gmail.'
  • UserInfo_Email.Validation: 'You must enter a valid email address. <br>No Yahoos, Hotmails nor Gmails, ¿ok?'


That's it. Give it a try!

Saludos,
Alejandro.

 
New Post
3/17/2008 9:23 AM
 

Thank you for your quick response Sebastian and Alejandro.

I followed Alejandro's suggestion and it works very well.

Gracias Alejandro y esperanza de poder ayudarle algún día también. (AltaVista Translation. Hope it doesn't sound weird)

-Oliver

 
New Post
5/6/2008 7:35 PM
 

I have been looking for information on how to localize the text used for the User Name, First Name:, Last Name:, Display Name:, Email Address:, Password, Enter a password., Password: and Confirm Password: used on the registration screen.

I am running DNN 04.04.00.

Regards,

Benicio

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localize User Registration pageLocalize User Registration page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out