Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Is this the case for all onBefore___ triggers? Meaning if I want to modify _users or _comprofiler tables I can't use onBefore___ triggers?krileon wrote: You're using an on before trigger. A user store is done directly after that. The user store will update _comprofiler and _users. Query actions don't touch user object. This means your query changes will be overridden by the user object store, which still has the old information.
How do I get value from custom table? The counter is stored in a custom table `jos_apdt_memberid_counter.next_memberid`.krileon wrote: Use a field action to properly adjust values such as that
I need to send the Member ID in the welcome/approval email so which other triggers are fired during approval? The logic is that Member ID is only generated for approved members so I can't put it in before/after registration triggers.krileon wrote: or change to a more appropriate trigger.
Please Log in or Create an account to join the conversation.
It depends entirely on the location and as to what happens after the on before trigger. If there's a user store, before a page load, directly after the trigger then yes queries that alter _users and _comprofiler won't work right and you need to use a Field action.Is this the case for all onBefore___ triggers? Meaning if I want to modify _users or _comprofiler tables I can't use onBefore___ triggers?
Could use a CB Query Field to retrieve the value then use that query field as a substitution in the field action "Value: [cb_myquery]".How do I get value from custom table? The counter is stored in a custom table
Just use the after approval trigger as follows.I need to send the Member ID in the welcome/approval email so which other triggers are fired during approval? The logic is that Member ID is only generated for approved members so I can't put it in before/after registration triggers.
Please Log in or Create an account to join the conversation.
Thanks! I got it to work BUT I have to use onBeforeUserBlocking trigger.krileon wrote: Could use a CB Query Field to retrieve the value then use that query field as a substitution in the field action "Value: [cb_myquery]".
Just use the after approval trigger as follows.
onAfterUserApproval
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.