Hi, as many, I'm trying to create a registration form that replaces Joomla's one because I want only publishers or admins to create users; and I want some custom fields for them.
I've activated the Joomla registration plugin and i've created a new table for the form, after Submit, the form is supposed to:
a) Create the new user
b) Store the additional fields on the new table.
So far everything works as expected: Joomla user is created, and data is stored to the table; however I think I encountered an error. While I was testing the form, I decided to use the same email address for the new test user than the email of an existing user. The result was that the Joomla account was not created, no error was returned, and the additional data was stored on the form table.
Here's the debug output:
Here's the "Run Order":
1) Plugins
2) OnSubmit
3) Autogenerated
The expected result was that if the plugin step failed, everything else should fail as well, hence, OnSubmit (which I have empty) is not ran, neither is the Autogenerated code that stores the extra data on the form's associated table. I've been looking for some place to "Enable" the "Form passed the plugins step" option the Debug output mentions but I can't seem to find it. Furthermore, I can see that the Plugin has a "Registration result" key = $MyPlugins->cf_joomla_registration['complete'], but I don't know how to use that (if I can anyway) to evaluate the result (as I could on the OnSubmit block, for example).
These are the versions I'm using:
Joomla! 1.5.10
ChronoConnectivity V1.2
ChronoForms V3.1 RC4.11
Plugin_chronocontact V3.1 RC4.11
Ideas?
I've activated the Joomla registration plugin and i've created a new table for the form, after Submit, the form is supposed to:
a) Create the new user
b) Store the additional fields on the new table.
So far everything works as expected: Joomla user is created, and data is stored to the table; however I think I encountered an error. While I was testing the form, I decided to use the same email address for the new test user than the email of an existing user. The result was that the Joomla account was not created, no error was returned, and the additional data was stored on the form table.
Here's the debug output:
1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [txtName] => test [txtUsername] => test [txtEmail] => test@server.com [txtPwd] => 123 [txtPwdchk] => 123 [txtAddr] => 123 [ddState] => 2 [ddCity] => 25 [txtPhone] => 123 [txtURL] => 123 [52725d7916e7e57b3276706e716eedd8] => 1 )
6. $_FILES Array: Array ( )
7. Form passed the plugins step (if enabled) OK
8. Debug End
Here's the "Run Order":
1) Plugins
2) OnSubmit
3) Autogenerated
The expected result was that if the plugin step failed, everything else should fail as well, hence, OnSubmit (which I have empty) is not ran, neither is the Autogenerated code that stores the extra data on the form's associated table. I've been looking for some place to "Enable" the "Form passed the plugins step" option the Debug output mentions but I can't seem to find it. Furthermore, I can see that the Plugin has a "Registration result" key = $MyPlugins->cf_joomla_registration['complete'], but I don't know how to use that (if I can anyway) to evaluate the result (as I could on the OnSubmit block, for example).
These are the versions I'm using:
Joomla! 1.5.10
ChronoConnectivity V1.2
ChronoForms V3.1 RC4.11
Plugin_chronocontact V3.1 RC4.11
Ideas?