Skip to Content Skip to Menu

Start PHP file after picture update

  • GUEST
9 years 11 months ago #253397 by
I would like to start a trivial xyz.PHP file after an avatar update.
what config in CB auto action would do that?
So far I have trigger is 'After avatar update'
Not sure about the other configs..

CB V2.03, Auto actions V6.0.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago - 9 years 11 months ago #253432 by krileon
Replied by krileon on topic Start PHP file after picture update
Sorry, don't understand what you're wanting to do. You want to execute PHP after an image is uploaded? Send an HTTP request to a PHP file? What is the intention of the PHP (helps suggest better alternative if possible)? To execute PHP after image upload for example you could use CB Auto Actions on the after profile update and after registration trigger using a Code action then test var1 to var3 (e.g. [var1_avatar] Not Equal To [var3_avatar]) to see if the image field changed.


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.
Last edit: 9 years 11 months ago by krileon.

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

  • GUEST
9 years 11 months ago #253447 by
Sorry if I wasn't clear.
I've a PHP script which copies every new avatar from the CB database to another non CB-related database.
what I would like to do is fire up this script with php (php copyavatarscript.php) whenever the CB-avatar is changed. It's a non html/CB related php script.
So I am looking for the config to do that in Auto Actions.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #253487 by krileon
Replied by krileon on topic Start PHP file after picture update
You could use the Request action to send a GET/POST request to your PHP file. Alternative is to use a Code action and just put your PHP inline into the action, which also will let you use Joomla API to help with the copying.


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.

  • GUEST
9 years 11 months ago #253528 by
Say I want to send a GET/POST request. What methode would I define in the actions?
Leave conditions and parameters blank?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #253625 by krileon
Replied by krileon on topic Start PHP file after picture update
Depends on what you need. If you want it to only apply to certain users with a certain field value then add a condition. Adjust the parameters as needed (please read their descriptions for their usage).


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