Skip to Content Skip to Menu

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

List of all the substitutions for CB Auto Actions ?

  • beneymard
  • beneymard
  • OFFLINE
  • Posts: 87
  • Thanks: 6
  • Karma: 1
9 years 1 month ago - 9 years 1 month ago #269990 by beneymard
Hello,

I searched and I did not find a list of all the substitutions. Would it be posible to have this list because I want to do some stuff with Auto Actions (which I find awesome by the way) and I need these substitutions. I would need to target the receiver of a connection request and the target of a profile view.

Many thanks,

Pierre
Last edit: 9 years 1 month ago by beneymard.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 1 month ago #270004 by krileon
The substitutions available are entirely dependent on the trigger used. The trigger can then have any number of variables, which could be objects with any number of variables themselves. For that reason it's not really possible to list them all. As for what substitutions are available for the user object, it's the same as anywhere else (see CB > Field Management for fields you can substitute).

See the below for a list of triggers and their variables. It's a little out of date, but it has the majority of them.

www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers


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.

  • beneymard
  • beneymard
  • OFFLINE
  • Posts: 87
  • Thanks: 6
  • Karma: 1
9 years 1 month ago #270103 by beneymard
Thanks a lot !

I would like to use this one
$_PLUGINS->trigger( 'onBeforeEmailUser', array( &$rowFrom, &$rowTo, 1 ))

how to call the &$rowFrom and the &$rowTo in the CB Auto Action Panel (in CB > Plugin management> CB AutoActions) ? I tried [cb:userdata field="cb_ijoingetsonikto" user="#me"/] and [cb:userdata field="cb_ijoingetsonikto" user="#displayed"/] but it does not work. I figured it is the "Before email user" trigger but I cannot find a way to deal with the condition.

Thanks in advance,
Pierre

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 1 month ago #270112 by krileon
You can't use standard substitution structure for both. One of them will be used as the action user object (probably rowFrom if User left as Automatic) and any standard substitution format for user fields will apply to them. You can access both user objects also with the below usage.

[var1_username]
[var2_username]

var1 being $rowFrom and var2 being $rowTo. Please be sure to read the User parameter description and other input descriptions carefully where this usage is explained.

That trigger also doesn't have a display. It's during a PHP process so it's not going to display anything so I'm not sure what your intention is.


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.

  • beneymard
  • beneymard
  • OFFLINE
  • Posts: 87
  • Thanks: 6
  • Karma: 1
9 years 1 month ago #270146 by beneymard
Thank you !

For the display i thought that since the connection request or the message request is executed from the profile page of "username", #displayed would mean username.

It works perfectly though but i cannot understand what you mean

Please be sure to read the User parameter description and other input descriptions carefully where this usage is explained.

Where do I find this User parameter description ? In the condition tab, below the conditions there is a series of pieces of code but none of them include what you said. I would be very interested to look at this description as it will make my work with CB auto actions a lot easier.

Thanks again,
Pierre

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 1 month ago #270156 by krileon

For the display i thought that since the connection request or the message request is executed from the profile page of "username", #displayed would mean username.

The displayed variable is only set during the profile display function. So using #displayed in most cases won't help. You'll need to access var1 and var2 directly as described above most likely. You can also use the User parameter to force the actions user object to Variable 1 or 2 as var1 is the from user object and var2 is the to user object. The action user object determines who standard substitutions like [FIELD_NAME] will come from.

Where do I find this User parameter description ? In the condition tab, below the conditions there is a series of pieces of code but none of them include what you said. I would be very interested to look at this description as it will make my work with CB auto actions a lot easier.

Under the global tab be sure to review the User parameter description and the other parameter descriptions for a better idea of what they do. We'll eventually have a more detailed manual on what each parameter does and a little better explanation of the trigger variable substitutions, but at this time we have mostly just usage examples.


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