I've read
"Plugins support for converting your form to a Joomla registration form or integrating it with Community builder too!"
Where do I find this plugin and how do I manage that?
"Plugins support for converting your form to a Joomla registration form or integrating it with Community builder too!"
Where do I find this plugin and how do I manage that?
Hi webbmary,
If you have ChronoForms v3 both plug-in are already installed.
If you have ChronoForms v4 there is a Joomla! Registration action installed but, at present, no CB action.
Bob
If you have ChronoForms v3 both plug-in are already installed.
If you have ChronoForms v4 there is a Joomla! Registration action installed but, at present, no CB action.
Bob
I am using Joomla 1.7 and ChronoForms v4. 😟
So there is nothing I can do to make this integration?
So there is nothing I can do to make this integration?
Hi webbmary,
I'm not sure I think that someone may have posted a thread here about getting this to work with ChronoForms v4. Try searching posts in the last few months.
Bob
I'm not sure I think that someone may have posted a thread here about getting this to work with ChronoForms v4. Try searching posts in the last few months.
Bob
Hi again. I have been working on getting a registration in Community Builder to work. The code below is what I came up with. It is executed in a custom code event on successful registration in Joomla, and before a save to db to the jos_comprofiler table. The id and user_id is hidden elements on the form.
Now the problem is that when this code is there, no record is inserted into the db. If I comment it all out, a record is inserted, but with id 0 which is the default value on the hidden elements. What is wrong with the code above?
<?php
$form->data['id'] = $form->data['_PLUGINS_']['joomla_registration']['id'];
$form->data['user_id'] = $form->data['_PLUGINS_']['joomla_registration']['id'];
?>
Now the problem is that when this code is there, no record is inserted into the db. If I comment it all out, a record is inserted, but with id 0 which is the default value on the hidden elements. What is wrong with the code above?
Hi webbmary,
Here's a part answer: I would add this code to your snippet to dump out the $form->data and see exactly what is in it at that stage:
Bob
Here's a part answer: I would add this code to your snippet to dump out the $form->data and see exactly what is in it at that stage:
<?php
$mainframe =& JFactory::getApplication();
$mainframe->enqueuemessage('$form->data: '.print_r($form->data, true).'<hr />');
?>
Bob
Hi!
This is what your code snippet generated:
BUT still nothing in the db. What to do?
This is what your code snippet generated:
$form->data: Array ( [firstname] => Nisse [lastname] => Tomte [address] => Tomtestreet [zipcode] => 2412 [city] => Julen [phone] => [email] => tomtetest@jularp.net [message] => [id] => 199 [user_id] => 199 [input_submit_6] => Skicka [e83c3030607163e4bfa3cdfde6d86668] => 1 [option] => com_chronoforms [chronoform] => ansokan [event] => submit [Itemid] => [name] => Nisse [username] => tomtetest@jularp.net [password] => Tomte [password2] => Tomte [_PLUGINS_] => Array ( [joomla_registration] => Array ( [*isRoot] => 1 [id] => 199 [name] => Nisse [username] => tomtetest@jularp.net [email] => tomtetest@jularp.net [password] => 31d107df55ff59b3d3dc0ee2d364495f:7CIOqhhyACFZ0IC9UUFsJna7w42VXzYM [password_clear] => Tomte [usertype] => deprecated [block] => 1 [sendEmail] => 1 [registerDate] => 2011-12-20 08:53:26 [lastvisitDate] => 2011-12-20 08:06:35 [activation] => e55ef420162568a3e5e3bb3d8dedac42 [groups] => Array ( [0] => 2 ) [*_params] => JRegistry Object ( [data:protected] => stdClass Object ( [0] => {"admin_style":"","admin_language":"","language":"","editor":"","helpsite":"","timezone":""} [admin_style] => [admin_language] => [language] => [editor] => [helpsite] => [timezone] => ) ) [*_authGroups] => Array ( [0] => 1 [1] => 8 ) [*_authLevels] => Array ( [0] => 1 [1] => 1 [2] => 2 [3] => 3 ) [*_authActions] => [*_errorMsg] => [*_errors] => Array ( ) [aid] => 0 [firstname] => Nisse [lastname] => Tomte [address] => Tomtestreet [zipcode] => 2412 [city] => Julen [phone] => [message] => [user_id] => -1 [input_submit_6] => Skicka [e83c3030607163e4bfa3cdfde6d86668] => 1 [option] => com_chronoforms [chronoform] => ansokan [event] => submit [Itemid] => [password2] => Tomte ) ) )
BUT still nothing in the db. What to do?
Hi Webbmary,
Good, and if you add a few tabs and returns you can see this
And $form->data['_PLUGINS_']['joomla_registration']['id'] = 199
So this part is working correctly. The next step is to output the queery you are building and see exactly what that looks like. You can either add an echo statement to see it; or temporarily turn on Site Debug which gives a list of all the queries being run on the page.
Bob
Good, and if you add a few tabs and returns you can see this
$form->data: Array (
[firstname] => Nisse
[lastname] => Tomte
[address] => Tomtestreet
[zipcode] => 2412
[city] => Julen
[phone] =>
[email] => tomtetest@xxx.net
[message] =>
[id] => 199
[user_id] => 199
[input_submit_6] => Skicka
[e83c3030607163e4bfa3cdfde6d86668] => 1
[option] => com_chronoforms
[chronoform] => ansokan
[event] => submit
[Itemid] =>
[name] => Nisse
[username] => tomtetest@xxx.net
[password] => zzz
[password2] => zzz
[_PLUGINS_] => Array (
[joomla_registration] => Array (
[*isRoot] => 1
[id] => 199
[name] => Nisse
[username] => tomtetest@xxx.net
[email] => tomtetest@xxx.net
[password] => 31d107df55ff59b3d3dc0ee2d364495f:7CIOqhhyACFZ0IC9UUFsJna7w42VXzYM
[password_clear] => zzz
[usertype] => deprecated
[block] => 1
[sendEmail] => 1
[registerDate] => 2011-12-20 08:53:26
[lastvisitDate] => 2011-12-20 08:06:35
[activation] => e55ef420162568a3e5e3bb3d8dedac42
[groups] => Array ( [0] => 2 )
[*_params] => . . .
And $form->data['_PLUGINS_']['joomla_registration']['id'] = 199
So this part is working correctly. The next step is to output the queery you are building and see exactly what that looks like. You can either add an echo statement to see it; or temporarily turn on Site Debug which gives a list of all the queries being run on the page.
Bob
This topic is locked and no more replies can be posted.