Email when updating extension

Here you can contact the editors of our Extensions site, as well as access infomation relating to this site.

Moderators: tydust, LorenzoG, timothy.stiffler

Forum rules
Forum Rules
READ ME <-- please read before posting, this means YOU.
Post Reply
DullForge
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Mar 15, 2006 7:17 pm

Email when updating extension

Post by DullForge » Fri Jul 20, 2007 11:43 am

I had this problem last time I made an update to my extension(TimeZoneClock).  It will not take my email as it should.  My email is [email protected].  I was able to make my changes to the extension by adding a mailto:[email protected].

Someone should check out extensions and see why it is not validating my email.

Thanks
Dave
Last edited by ot2sen on Tue Jul 24, 2007 7:05 am, edited 1 time in total.

User avatar
doctorj
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Sun Sep 04, 2005 4:42 am
Location: San Francisco, CA, USA
Contact:

Re: Email when updating extension

Post by doctorj » Sun Jul 22, 2007 7:44 am

I dont see any issues. I removed the mailto: as it as causing some emails issues. If you update it manually, does it give an error? If so, what the error?
Until Next Time,

Josh
http://www.gotgtek.com

DullForge
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Mar 15, 2006 7:17 pm

Re: Email when updating extension

Post by DullForge » Sun Jul 22, 2007 12:57 pm

it says :  Please Enter a valid e-mail address where users can contact the deveoloper of the extension.

Looks like there is a validation function that is checking the email noted below

Code: Select all

   function submitbutton(pressbutton) {
      var form = document.adminForm;
      if (pressbutton == 'cancel') {
         submitform( 'viewlink' );
         return;
      }
      
      if (form.link_name.value == ""){
         alert( "Please fill in the extension name before submitting." );
      } else if (form.link_desc.value == ""){
         alert( "Please fill in the description before submitting." );
      } else if (form.website.value == ""){
         alert( "Please enter the Homepage URL before submitting." );
      } else if (!gebid('cmt_com').checked && !gebid('cmt_mod').checked && !gebid('cmt_plugin').checked && !gebid('cmt_lang').checked && !gebid('cmt_esp').checked && !gebid('cmt_tool').checked ){
         alert( "Please select the type of extension before submitting." );
      } else if (!gebid('compat_10').checked && !gebid('compat_15').checked ){
         alert( "Please select the compatibility of the extensions before submitting." );
      } else if ( form.cust_1.value == "" ){
         alert( "Please select the license type before submitting." );
      } else if ( form.cust_4.value == "" ){
         alert( "Please enter the download URL before submitting." );
      } else if ( form.cust_14.value == "" ){
         alert( "Please enter the developer name." );
      } else if ( form.email.value == "" || (form.email.value.indexOf(".") <= 2) || (form.email.value.indexOf("@") <= 0)){
         alert( "Please enter a valid e-mail address where users can contact the developer of the extension." );
      } else {
         form.task.value=pressbutton;
         form.submit();
      }
   }


form.email.value.indexOf(".") <= 2

should probably be

Code: Select all

   


function submitbutton(pressbutton) {

var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;   //added
var address = form.email.value;                                                             //added

      var form = document.adminForm;
      if (pressbutton == 'cancel') {
         submitform( 'viewlink' );
         return;
      }
      
      if (form.link_name.value == ""){
         alert( "Please fill in the extension name before submitting." );
      } else if (form.link_desc.value == ""){
         alert( "Please fill in the description before submitting." );
      } else if (form.website.value == ""){
         alert( "Please enter the Homepage URL before submitting." );
      } else if (!gebid('cmt_com').checked && !gebid('cmt_mod').checked && !gebid('cmt_plugin').checked && !gebid('cmt_lang').checked && !gebid('cmt_esp').checked && !gebid('cmt_tool').checked ){
         alert( "Please select the type of extension before submitting." );
      } else if (!gebid('compat_10').checked && !gebid('compat_15').checked ){
         alert( "Please select the compatibility of the extensions before submitting." );
      } else if ( form.cust_1.value == "" ){
         alert( "Please select the license type before submitting." );
      } else if ( form.cust_4.value == "" ){
         alert( "Please enter the download URL before submitting." );
      } else if ( form.cust_14.value == "" ){
         alert( "Please enter the developer name." );
      } else if (  if(reg.test(address) == false)){         //changed
         alert( "Please enter a valid e-mail address where users can contact the developer of the extension." );
      } else {
         form.task.value=pressbutton;
         form.submit();
      }
   }
Last edited by DullForge on Sun Jul 22, 2007 1:30 pm, edited 1 time in total.

User avatar
doctorj
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Sun Sep 04, 2005 4:42 am
Location: San Francisco, CA, USA
Contact:

Re: Email when updating extension

Post by doctorj » Sun Jul 22, 2007 4:47 pm

Thanks I see the issue. I will forward this on to the team.
Until Next Time,

Josh
http://www.gotgtek.com

User avatar
dknight
Joomla! Engineer
Joomla! Engineer
Posts: 467
Joined: Thu Aug 18, 2005 5:14 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Email when updating extension

Post by dknight » Tue Jul 24, 2007 1:21 am

Hello Dave,

The issue has been fixed. Thanks for bringing this in to attention.
Lee - Mosets Consulting
Developer of Real Estate and Directory component for Joomla!
Website: www.mosets.com


Post Reply