I explain my case quickly.
I try to establish a register form for joomla user, hence i use the plugin
I have added a fild in the jos_users table named : customer_regis
I try to set the value of this column to 1 after the registering process is done by updating the database because i don't success to set this value ($form->data['_PLUGINS_']['joomla_registration']['id']) before the registration process is starting. if you would like to do it i guess i would need to hack the code of the chronofrm joomla registration plug in what i want to avoid
Hence, I have tried to put PHP code to update the table after the registration is finished.
In this case i need to get back the Id of the recently created user to update it
I have tried this below, without success so far.
I think the problem comes from this part :
$form->data['_PLUGINS_']['joomla_registration']['id']
How to get he user id ?
So far i get an error telling me this "Parse error: syntax error, unexpected T_STRING in ..."
My question is actually more general : how to get access to those data in the regsitration process and put them in a PHP variable ?
Your help is appreciated
I try to establish a register form for joomla user, hence i use the plugin
I have added a fild in the jos_users table named : customer_regis
I try to set the value of this column to 1 after the registering process is done by updating the database because i don't success to set this value ($form->data['_PLUGINS_']['joomla_registration']['id']) before the registration process is starting. if you would like to do it i guess i would need to hack the code of the chronofrm joomla registration plug in what i want to avoid
Hence, I have tried to put PHP code to update the table after the registration is finished.
In this case i need to get back the Id of the recently created user to update it
I have tried this below, without success so far.
$query_inject = UPDATE jos_users SET customer_regi=1
WHERE customer_id=$form->data['_PLUGINS_']['joomla_registration']['id'];
mysql_query($query_inject);
I think the problem comes from this part :
$form->data['_PLUGINS_']['joomla_registration']['id']
How to get he user id ?
So far i get an error telling me this "Parse error: syntax error, unexpected T_STRING in ..."
My question is actually more general : how to get access to those data in the regsitration process and put them in a PHP variable ?
Your help is appreciated