Please Log in or Create an account to join the conversation.
You can execute actions via Internal General, Internal Users, and Internal Action URLs. Internal Users will fire the action on every user row. Internal General will fire it on an empty user. Internal Action fires a specific action on an empty user. To use Internal Users or Internal General you add the respective trigger to the action then click the respective URL from CB Auto Actions > Parameters.Is it also possible to trigger a function outside of CB by including the url to that specific php file?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can execute actions via Internal General, Internal Users, and Internal Action URLs. Internal Users will fire the action on every user row. Internal General will fire it on an empty user. Internal Action fires a specific action on an empty user. To use Internal Users or Internal General you add the respective trigger to the action then click the respective URL from CB Auto Actions > Parameters.
Please Log in or Create an account to join the conversation.
The triggers input has full searching capability. Please see my below screenshot.The only triggers that are close to what you mentioned are "Start Save Registration" and "After Registration Mail Sent".
Not sure which one to use...
No, you don't use any PHP at all; it does all of that for you. You only supply the actual query string. In your case probably an update or insert query to push to a different table. Yes you can use substitutions.Would I use global database parameters in order to save to another joomla table in the database, and can I use the cb field subsitution as shown below?:
No, that's typically only needed if the user object has been modified by a previous action.Do I need to reload the user in the auto action's parameter?
Use an SQL subquery. Please see the below MYSQL documentation.How would I retrieve a value from a non-CB table using a select query and then use that value in a second query?
I don't understand. Why do you want to call an action from PHP? If that's the case just perform what you're wanting in your PHP. Using an action would be a redundant step. The Code action with PHP method executes your PHP in the Joomla scope so you can do includes, use Joomla API, CB API, etc.. in your action.I'm not sure what you mean by internal action URL, as I can only find Internal User and General triggers. Ideally, I'd like to be able to call this function from with the code, so would I need to use a separate "code" action for this using php (eval) method and including the path to the file which contains the function that I need to use?
From PHP? You'd use CB or Joomla database API to query for whatever you need. From SQL you'd use subqueries.If I need to retrieve other non-CB variables to use with this function, is it possible to mix queries to grab values to use in this function and how would I do that?
Please Log in or Create an account to join the conversation.
I don't understand. Why do you want to call an action from PHP? If that's the case just perform what you're wanting in your PHP. Using an action would be a redundant step. The Code action with PHP method executes your PHP in the Joomla scope so you can do includes, use Joomla API, CB API, etc.. in your action.I'm not sure what you mean by internal action URL, as I can only find Internal User and General triggers. Ideally, I'd like to be able to call this function from with the code, so would I need to use a separate "code" action for this using php (eval) method and including the path to the file which contains the function that I need to use?
From PHP? You'd use CB or Joomla database API to query for whatever you need. From SQL you'd use subqueries.[/quote]If I need to retrieve other non-CB variables to use with this function, is it possible to mix queries to grab values to use in this function and how would I do that?
Please Log in or Create an account to join the conversation.