Skip to Content Skip to Menu

[SOLVED] Parameter in CB Activity Email

  • Hansueli
  • Hansueli
  • OFFLINE
  • Posts: 48
  • Thanks: 1
  • Karma: 0
10 years 7 months ago - 10 years 2 months ago #242432 by Hansueli
[SOLVED] Parameter in CB Activity Email was created by Hansueli
I have a CB Activity
Type: Email
Triggers: onAfterUserUpdate, onAfterUpdateUser
I would like to see who has updated it. So I see has the user or an Moderator updated it.
Is there a tutorial describing in which way I can access parameters?
I am confused whre to use [] or {} or php?

rh
Last edit: 10 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242452 by krileon
Replied by krileon on topic Parameter in CB Activity Email
You can't use PHP in an Email action. Substitutions are also always with []. Please be sure to read the descriptions next to each input carefully. Please also see the below substitution tutorial for substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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.

  • lkessner
  • lkessner
  • OFFLINE
  • Posts: 15
  • Thanks: 1
  • Karma: 0
10 years 2 months ago - 10 years 2 months ago #247994 by lkessner
Replied by lkessner on topic Parameter in CB Activity Email
Hi,

i have a similar question but whis EMail from AutoAction.

I found, that it gives 3 vars.
var1 = user
var2 = user that make changes
var3 = old userdata

In the E-Mail the fields var1_cb_phonenumber and var3_cb_phonenumber contains the right values, but var2_lastname does not contains the user that make changes. It contains the lastname from the user where the phonenumber was changed.

User stands on automatic, when i set user to user the values are the same.

CB 1.9.1
AutoActions 5.1.3

Greets

Lars
Last edit: 10 years 2 months ago by lkessner.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248011 by krileon
Replied by krileon on topic Parameter in CB Activity Email
var2 is not the user that made the change. If you're using an after profile update or after registration trigger then var2 and var3 are exactly the same. The only way to substitute information in from the viewing user is to use the user substitution parameter. Example as follows.

[cb:userdata field="lastname" user="#me" /]

Please see the below substitution tutorial for further usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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.

  • lkessner
  • lkessner
  • OFFLINE
  • Posts: 15
  • Thanks: 1
  • Karma: 0
10 years 2 months ago #248018 by lkessner
Replied by lkessner on topic Parameter in CB Activity Email
Ok, Thanks.

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

Moderators: beatnantkrileon
Powered by Kunena Forum