Buy Now
Sign in

Joomla event "onUserAfterSave"

deef73 , November 17 2021, 06:14
D
deef73 49
November 17 2021, 06:14 #397415
I have made a contact page (whit some help) to which I added a password:
https://www.offirent.be/contacteer-ons/contact1
So the workflow is this:New user --> uses contactform --> contactform sends to info@offirent.be --> contactdetails will be added to the easysocial database. --> user gets a email, please confirm you're registrationExisting user --> use contactform --> contactform will sends to info@offirent.be --> user gets a email, hey user please login to easysocial.
The problem is that the onUserAfterSave is not triggered. I don't know how to do this (I am using easysocial). So I am in search of how to do this I have installed the demo form
A form to register a new Joomla user account and send an account activation email
But I don't know where to start to trigger this action. Is there someone who can give me a clue?
GreyHead 65
November 18 2021, 10:40 #397424
Hi deef73,
I suspect - though I'm not certain - that the problem here is that ChronoForms writes directly to the user table and so the onUserAfterSave function is not called. You could possibly use Custom PHP to call that at the appropriate point in the process flow???
Bob
If you'd like to buy me a coffee or two, thank you very much
D
deef73 49
November 18 2021, 15:57 #397426
Is someone who can guide me out what is the best way to trigger this event?
GreyHead 65
November 19 2021, 15:27 #397432
Hi deef73,
What are you trying to achieve by calling this function?
Bob
If you'd like to buy me a coffee or two, thank you very much
D
deef73 49
November 22 2021, 09:28 #397446
Easysocial "User - EasySocial" plugin doesn't get triggered when the user register via contact form.
I see, from what I test, I think this contact form process doesn't trigger this Joomla event "onUserAfterSave" so the Easysocial "User - EasySocial" plugin doesn't get triggered when the user register via contact form.If you create a new user account from the backend Joomla user page, the Easysocial will assign the newbie badge for the user account since the Joomla create new user process did trigger for this event "onUserAfterSave".Perhaps you can consult with the contact form developer and see whether the contact form submit form did allow to trigger this event "onUserAfterSave"?
GreyHead 65
November 22 2021, 15:17 #397453
Hi deef73,
I guess that you could use Custom PHP either to call the Joomla event; or possibly to call directly to EasySocial.
Bob
If you'd like to buy me a coffee or two, thank you very much