F.schettino
Italian
Ok, I know how use Juser Form plugin (that is very useful), but I have a form that I have to use in various situations:
Before creation of the J! account - Form used by users who belong to an administration group
1- modification of some data, without creation of the user account
2- creation of user account (setting username, password,...).
After creation of the J! account - Form used by the owner of account
3 - modification of username, password and other data.
In the case 3, I can use Juser Form plugin; in the case 1 and 2 I think I cannot, because administrator is free to create or not the account.
So I am going to use:
- Juser Form plugin - Option/Condition: return '{fabrik_soggetti___id_User_Joomla}' != null; or something similar (for case 3)
- PHP Form plugin (onAfterProcess) to check the case and code what it is necessary. (for case 1 and 2)
The question is:
- there is a trick to use Juser Form plugin in any case (1-2-3)?
or
- can I use some Joomla PHP standard code/plugin/... to create the user account (for example, some piece of Juser Form plugin)?
Before creation of the J! account - Form used by users who belong to an administration group
1- modification of some data, without creation of the user account
2- creation of user account (setting username, password,...).
After creation of the J! account - Form used by the owner of account
3 - modification of username, password and other data.
In the case 3, I can use Juser Form plugin; in the case 1 and 2 I think I cannot, because administrator is free to create or not the account.
So I am going to use:
- Juser Form plugin - Option/Condition: return '{fabrik_soggetti___id_User_Joomla}' != null; or something similar (for case 3)
- PHP Form plugin (onAfterProcess) to check the case and code what it is necessary. (for case 1 and 2)
The question is:
- there is a trick to use Juser Form plugin in any case (1-2-3)?
or
- can I use some Joomla PHP standard code/plugin/... to create the user account (for example, some piece of Juser Form plugin)?