Please Log in or Create an account to join the conversation.
Depends on what trigger you use.If I use these triggers, do I have to submit an UPDATE query myself?
Yup, you can directly modify the user object for that trigger using the following.If I use the onBefore... triggers, can I just assign the new value to $user->cb_lat and will it get updated by CB?
What you're asking for isn't something we can really document. It's effectively asking us "can I use PHP to do PHP things?" of which the answer is always "yes, but.." since it depends entirely on your knowledge of PHP. The non-code based auto actions of CB Auto Actions are significantly more straight forward with System Actions providing several usage examples.I wish the documentation for Auto Actions was better. I use it a lot, it is VERY feature-rich, but it's often guesswork to figure things out.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We don't have an official event naming convention. It's something we'll be correcting with CB 3.0 as we want to make sure all events have logical names and include phpdoc describing the event so we can parse out documentation for them.I'd like to get the event naming convention clarified and also some other things.
onAfterUserRegistration = frontend registration1. Many events have the form "onBeforeUserUpdate" and "onBeforeUpdateUser". It's always been my understanding that the former ("UserUpdate") is when the profile is edited in the front end (typically by the user, but could be by a moderator or administrator) and the latter ("UpdateUser") is when it is edited in the back end. Right?
onAfterUserApproval is only used if the user is approved. So if you do not have approval enabled it does not fire.2. If the site is setup to only require confirmation and not approval after registration, does the "onAfterUserApproval" event even trigger?
onAfterUserConfirm is fired immediately after the user is confirmed in the database and applies to frontend and backend. onAfterUserConfirmation is fired after the user has confirmed using the confirmation URL and can be used to apply a custom URL redirect, output custom messages to the user, etc..3. What is the difference between "onAfterUserConfirm" and "onAfterUserConfirmation"? Seems to me the former may be when the user clicks the confirmation link. So what is the latter? When the user's status is changed to "Confirmed" in the back end? Would they ever both trigger at the same time?
Please Log in or Create an account to join the conversation.