Hi,
I have Created Registration form using chronoform joomla registration plugin, in that i have assigned Manager permission..It works perfectly ..
I have to update the same user details into jos_users table of another database(Eg: db2),it inserts username but password is not encrypted.I included code in "Extra code" tab of Joomla registration plugin.
Now i want to include the user into db2 with usernamepassword encryption,usertype(manager),gidand block values,then where i have to include the code/script😟 ..Guide me for this with your solution..reply for this as soon as possible..
Thank you in advance,
I have Created Registration form using chronoform joomla registration plugin, in that i have assigned Manager permission..It works perfectly ..
I have to update the same user details into jos_users table of another database(Eg: db2),it inserts username but password is not encrypted.I included code in "Extra code" tab of Joomla registration plugin.
Now i want to include the user into db2 with usernamepassword encryption,usertype(manager),gidand block values,then where i have to include the code/script😟 ..Guide me for this with your solution..reply for this as soon as possible..
Thank you in advance,
Hi bramya,
I'd be inclined to wait until the new registration is completed then add some custom code to copy the new user record and re-write it into the other database. That way all the info will be the same.
Bob
I'd be inclined to wait until the new registration is completed then add some custom code to copy the new user record and re-write it into the other database. That way all the info will be the same.
Bob
hi bob,
Thank u ..
some more doubts,
I am asking about the code to "copy custom code" and then where i have to give that code,Either in "Form JavaScript" or in "On Submit code - after sending email" ..can u give the suggestions for this..
Thank u ..
some more doubts,
I am asking about the code to "copy custom code" and then where i have to give that code,Either in "Form JavaScript" or in "On Submit code - after sending email" ..can u give the suggestions for this..
Hi bramya ,
It will be PHP not JavaScript so will need to go in the OnSubmit After Email box.
I'm not sure what the code is. You'll need to get the new user ID (there are several threads here about that); then load the user data and write a MySQL query to add it to the second database.
Bob
It will be PHP not JavaScript so will need to go in the OnSubmit After Email box.
I'm not sure what the code is. You'll need to get the new user ID (there are several threads here about that); then load the user data and write a MySQL query to add it to the second database.
Bob
I am using chronoform v4 joomla registration form to update databases(1.Default database and 2.Have to choose another database).
In default database,encrypted password ,gid,usertype are updating but i dono how toupdate to another database.Shall i use joomla registration once again,if so then how can i choose another database in that.
In default database,encrypted password ,gid,usertype are updating but i dono how toupdate to another database.Shall i use joomla registration once again,if so then how can i choose another database in that.
Hi bramya ,
Duplicating entries in different databases is usually a bad idea :-(
After the Joomla! Registration action the user data is in $form->data['_PLUGINS_']['joomla_registration'] so you should be able to capture it from there to use in a second DB Save action.
Bob
Duplicating entries in different databases is usually a bad idea :-(
After the Joomla! Registration action the user data is in $form->data['_PLUGINS_']['joomla_registration'] so you should be able to capture it from there to use in a second DB Save action.
Bob
This topic is locked and no more replies can be posted.