You would just execute that function in your Code action with method set to PHP then.Basically, what I want to do is after a user has been registered and saved, there needs to be a call to a "function" that will create an invitation for a user and a bit more processing of other things.
You don't need to hack anything. Just do a PHP require_once to the absolute path of your PHP file then execute your function as it'll be included into the scope. Example as follows.I have a PHP function that I have created within a standalone file, xxxxxx.php located within a specific directory that I'd like to call using a CB Auto Actions plugin. I was thinking this would be the best place to call the function, because the only other way to do this would be to hack the Joomla or CB code to call my function after the user gets saved in Community Builder. Hope this makes more sense.
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.
Please Log in or Create an account to join the conversation.
Honestly I don't recommend using anything less than PHP 5.4. The requirement is set based off the PHP functions used or PHP bugs. 5.3.29 is greater than 5.3.3 so you're fine. 5.3.29 though is the EOL of PHP 5.3 so it's the last PHP 5.3 release ever; see the below.I just have a quick question regarding using CB v2.04 with PHP version 5.3.29. I know CB 2.04 requires at least PHP 5.3.3, but currently we have a "test" site that has this kind of environment and I've installed the latest CB on this environment and all seems to be working. Is there anything that may not work if we do not upgrade our PHP version as doing the PHP upgrade on this server could be problematic for other things.
Please Log in or Create an account to join the conversation.