Forums

Form username & email validation

dennisg 22 Mar, 2008
I am using Joomla 1.5.1 and CF 2.5J1.5RC2.1. I am using the Registration plugin and have Validation enabled. Is there a way to check form username and email against #__users table using Form Code, or by trapping the error returned by Joomla (or some other way)? Right now the form is submitted, emails are sent and the Joomla error message "This username/password already in use." is written over my redirection URL article.
Max_admin 22 Mar, 2008
Hi Dennis,

This is a good feature to be added, will make sure we have this soon, may be using AJAX, but currently we use the same method Joomla uses so its not better or less!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 22 Mar, 2008
Hi dennisg,

I wrote a custom plugin recently that worked with a hacked version of chronocontact.php. This ran some checks and returned a value if there was a problem so that it could be caught and handled before the emails were sent. You can't do that with the current PlugIn code.

Bob
dennisg 12 Apr, 2008
I did some investigation into this issue to figure out a hack and noticed a few things:
1) Registration emails are sent BEFORE the call to the Registration Plugin.
2) There is no checking to see if plugin returns successful ( onsubmit() ).
So, if I return a false from the plugin and perform a check (2) , it's too late - the email is already sent.
Max_admin 12 Apr, 2008
Hi Dennis,

Exactly, new version of Chronoforms will be available very soon with the option for you to set when the plugins are called : before or after email is sent, global variables defined in the plugins so you can get them later in the email or check them before sending, for example a new Authorize.net payment plugin is available (not released yet) which connects to Authorize and make payment and only if Authorize.net returns APPROVED the email is sent and the order is saved or other plugins run🙂

The only bad news is that all this will be available for the Joomla 1.0 version first then get implemented at the J1.5 version!

Regards,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dennisg 13 Apr, 2008
Sounds exactly like what I need! The addition of the Authorize.Net payment plug is even better news. I have a work-around in place now, so I can wait a bit for the J1.5 release.
Thanks!
This topic is locked and no more replies can be posted.