0
Welcome Guest! Login
0 items Join Now

Joomla installation - email not valid?

    • Nick R's Avatar
    • Nick R
    • Sr. Rocketeer
    • Posts: 180
    • Thanks: 0

    Joomla installation - email not valid?

    Posted 15 years 4 months ago
    • Hi Guys,

      well, its not about rockettheme but maybe someone of you could help me.
      Im trying to install joomla on a server where im running different other Joomlas. Today i wanted to install Joomla on my .travel domain. But when im asked fo admin mail address ( This email address is being protected from spambots. You need JavaScript enabled to view it.) it wont let me use this address "Please use a valid e-mail address".... Uh, never seen this before.
      Domain and emails are running on this server also from this domain, so where could be the problem?

      Any ideas?

      Cheers
      Nick
  • Re: Joomla installation - email not valid?

    Posted 15 years 4 months ago
    • Yes, it comes from the Joomla validate.js which turn .travel as invalid because the default one only allow 4 characters. Let's change it to allow 6 characters

      Open validate.js at:
      <Joomla Root>/media/system/js/validate.js

      Find below codes:
       
      this.setHandler('email',
          function (value) {
              regex=/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
              return regex.test(value);
          }
      );
       

      Change the codes to:
       
      this.setHandler('email',
          function (value) {
              regex=/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,6}$/;
              return regex.test(value);
          }
      );
       

Time to create page: 0.062 seconds