Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] What is the correct trigger?

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 9 months ago - 11 years 8 months ago #217808 by Roland
Hello,

I have a CB field and I want to run the following query after every update:

UPDATE `#__banners` SET `clickurl` = [cb_bannerlink] WHERE `id` = [cb_bannerid]

Could you tell me please what's the correct trigger/settings in the auto-action-plugin?

It's a little bit confusing for me...

Thanks in advance.

Greetings, Roland

www.simple-quality.de - The Quality-Web-Portal
Last edit: 11 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #217826 by krileon
Replied by krileon on topic Re: What is the correct trigger?
After every update of what? If of profile edit then simply select the after profile update trigger from the triggers dropdown.


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.

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 9 months ago #218006 by Roland
Replied by Roland on topic Re: What is the correct trigger?
Hello Krileon,

after update the field.

I've a field called cb_bannerlink (url). Every time a user update this field, the Autoaction should update the URL from a special banner of the user (url-field in Joomla Core Banner Component).

I tried it with the following parameter but without success. Does it work with changes made in the field via CB Core Ajax field plugin?


www.simple-quality.de - The Quality-Web-Portal
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #218032 by krileon
Replied by krileon on topic Re: What is the correct trigger?
If you want to check if a specific field is updated you need to first select the after profile update trigger then add a conditional to check the new user object against the old using the triggers variables. Example as follows.

[var1_cb_bannerlink] Not Equal To [var3_cb_bannerlink]


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.

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 9 months ago - 11 years 9 months ago #218098 by Roland
Replied by Roland on topic Re: What is the correct trigger?
Is it possible that someone have a look on this and one more similar trigger in a professional service hour? If yes i would make a short description with some screenshots...

www.simple-quality.de - The Quality-Web-Portal
Last edit: 11 years 9 months ago by Roland.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #218182 by krileon
Replied by krileon on topic Re: What is the correct trigger?
We have a professional service by the hour available from your membership tab on your profile, but I don't think it covers setup of CB Auto Action usages. What specifically do you need? I can make further suggestions, but you'll need to post more details as my previous reply covers the field comparison at profile update.


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