Forums

Joomla event "onUserAfterSave"

deef73 17 Nov, 2021
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 18 Nov, 2021
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
deef73 18 Nov, 2021
Is someone who can guide me out what is the best way to trigger this event?
GreyHead 19 Nov, 2021
Hi deef73,

What are you trying to achieve by calling this function?

Bob
deef73 22 Nov, 2021
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 22 Nov, 2021
Hi deef73,

I guess that you could use Custom PHP either to call the Joomla event; or possibly to call directly to EasySocial.

Bob
You need to login to be able to post a reply.