Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

onUserAfterSave does not follow logic flow

9 years 3 months ago
  • Mike's Avatar
    Topic Author
  • Mike
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Hi
I have a user plugin that wants to capture JomSocial custom profile fields values and do some manipulation with it. The problem is, I can only get the fields values if it's an existing user. If it's a new user, $user->getInfo('FIELD_CODE') returns null because the custom fields values have not been added to the database table when the onUserAfterSave is triggered. However, after submitting the first step of the form, I noticed the values are indeed populated. I did some debugging and realized that onUserAfterSave is triggered before the fields values are added, which makes no sense to me. Where can I make it such that onUserAfterSave is triggered after fields values are added?

9 years 3 months ago
  • Mike's Avatar
    Topic Author
  • Mike
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

I should add that JomSocial version is 3.1.0.4 Pro

9 years 3 months ago
Licenses:

Hi Mike,

please read this doc:
documentation.jomsocial.com/wiki/API_Events

maybe can have a clue with your issue.

FYI: 3.2.1.5 is a jomsocial latest version

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW