Makes sense to me. Now Anika can validate email addresses if the user edits his record from the settings page. Should test this though.
On Dec 15, 2010 5:28 AM, "[email protected]" <[email protected]> wrote: does that make any sense to anyone else? On Tue, Dec 14, 2010 at 1:24 PM, Bassel Safadi <[email protected]>wrote: > in form fields admins can add verifications stuff like > :email > at the end of the right part of the email field to verify the input is > email > this was working only on add, now it works on edit. > it fixed the bug of the users settings in pple > > > On Tue, Dec 14, 2010 at 11:14 PM, [email protected] <[email protected]> wrote: > >> what is this? >> >> ---------- Forwarded message ---------- >> From: <[email protected]> >> Date: Tue, Dec 14, 2010 at 9:03 AM >> Subject: [Branch ~aikiframework.admins/aikiframework/release-1.0.0] Rev >> 584: added email validation on form edit >> To: rejon <[email protected]> >> >> >> ------------------------------------------------------------ >> revno: 584 >> committer: Bassel Safadi <[email protected]> >> branch nick: aikiframework >> timestamp: Tue 2010-12-14 19:01:28 +0200 >> message: >> added email validation on form edit >> modified: >> src/system/libraries/records.php >> >> >> -- >> lp:aikiframework >> >> https://code.launchpad.net/~aikiframework.admins/aikiframework/release-1.0.0<https://code.launchpad.net/%7Eaikiframework.admins/aikiframework/release-1.0.0> >> >> You are subscribed to branch lp:aikiframework. >> To unsubscribe from this branch go to >> https://code.launchpad.net/~aikiframework.admins/aikiframework/release-1.0.0/+edit-subscription<https://code.launchpad.net/%7Eaikiframework.admins/aikiframework/release-1.0.0/+edit-subscription> >> >> === modified file 'src/system/libraries/records.php' >> --- src/system/libraries/records.php 2010-12-14 16:56:42 +0000 >> +++ src/system/libraries/records.php 2010-12-14 17:01:28 +0000 >> @@ -183,7 +183,7 @@ >> $insertCount = count($form_array); >> foreach($form_array as $field) >> { >> - >> + >> $field = $aiki->url->apply_url_on_query($field); >> $field = $aiki->sql_markup->sql($field); >> >> @@ -747,7 +747,7 @@ >> if (!isset($post['form_post_type'])){ >> $post['form_post_type'] = "save"; >> } >> - >> + >> $output_result = ''; >> >> $form = $db->get_row("SELECT * from aiki_forms where >> id='$form_id' limit 1"); >> @@ -835,6 +835,13 @@ >> } >> >> break; >> + >> + case "email": >> + if >> (!$aiki->text->is_valid("email",$post[$intwalker[0]])){ >> + >> $output_result .= "The email address is not valid<br />"; >> + >> $do_not_update = $intwalker['0']; >> + } >> + break; >> } >> } >> >> >> >> >> >> >> -- >> Jon Phillips >> http://rejon.org/ >> http://fabricatorz.com/ >> chat/skype: kidproto | irc: rejon >> +1.415.830.3884 (sf/global) >> +86.187.1003.9974 (china) >> >> +65.8330.5807 (singapore) >> >> >> > > > -- > Bassel Safadi > http://bassel.ws > http://aikilab.org > Global +1 323-545-3855 > Singapore +65 93488349 > > -- Jon Phillips http://rejon.org/ http://fabricatorz.com/ chat/skype: kidproto | irc: rejon +1.415.830.3884 (sf/global) +86.187.1003.9974 (china) +65.8330.5807 (singapore) _______________________________________________ Mailing list: https://launchpad.net/~aikiframework-devel Post to : [email protected] Unsubscribe : https://launchpad.net/~aikiframework-devel More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~aikiframework-devel Post to : [email protected] Unsubscribe : https://launchpad.net/~aikiframework-devel More help : https://help.launchpad.net/ListHelp

