Skip to Content Skip to Menu

CB Auto Actions Code

  • nooran
  • nooran
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 0
10 years 9 months ago #240461 by nooran
Replied by nooran on topic CB Auto Actions Code
Dear Kyle
As you can see in post number #240363 I use my php code with "Code action with Method set to PHP",
But unfortunately it doesn't work, I don't know why !
I'm so pleasure if it will be work, but it didn't.

So I change my method to use Query code in Auto Action + use redirect method with trigger "after user profile update" to call my php file, it works but it forward user to my php page and it's not good,
I want this "redirection/php call" done in background.
any solution ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #240484 by krileon
Replied by krileon on topic CB Auto Actions Code
Code action works perfectly fine. The issue is likely with your code it self. All code is wrapped in create_function or eval so you need to write your code with those usage limitations in mind. It's not going to be exactly the same as adding code to a php file; also all [STRING] usages will be treated as substitutions.

If you just want to execute your php file you can use the Request action to send an HTTP request to your script either as XML, GET, POST, or JSON as needed (probably just GET or POST in your case) instead of redirecting to it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum