Skip to Content Skip to Menu

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

Substitutions in CB AUTO ACTIONS

  • agrepe
  • agrepe
  • OFFLINE
  • Posts: 245
  • Thanks: 3
  • Karma: 0
9 years 2 months ago - 9 years 2 months ago #269590 by agrepe
Substitutions in CB AUTO ACTIONS was created by agrepe
Hello,
Hello, I will wish to understand how to use substitutions in CB AUTO ACTION .

For example, I would like to add the name of the group after the string when a member joins a group.



Best regards.

Eric
Attachments:
Last edit: 9 years 2 months ago by agrepe.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
9 years 2 months ago #269615 by krileon
Replied by krileon on topic Substitutions in CB AUTO ACTIONS
See the below for substitution usage information.

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

Trigger variable substitutions are substituted in as [var1-10_VARIABLE]. For example in your screenshot [var1_user_id] is the ID of the user creating the group. You can use [name] for example to get the name of the user who triggered the action.


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.

  • agrepe
  • agrepe
  • OFFLINE
  • Posts: 245
  • Thanks: 3
  • Karma: 0
9 years 2 months ago #269637 by agrepe
Replied by agrepe on topic Substitutions in CB AUTO ACTIONS
Hello,
So if I understand correctly , if I want the name of the owner of the group I use substitution " [ var1_user_username ]" ?

Best regards.

Eric

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

  • agrepe
  • agrepe
  • OFFLINE
  • Posts: 245
  • Thanks: 3
  • Karma: 0
9 years 2 months ago #269640 by agrepe
Replied by agrepe on topic Substitutions in CB AUTO ACTIONS
Hello,
Thank you very much for all that information .

I filed substitutions, and tried to add a URL, I have not arrived .




I would like the group URL is deposited on the group name .
Can you tell me how?



Is this link to be used ?



Best regards.

Eric
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
9 years 2 months ago #269668 by krileon
Replied by krileon on topic Substitutions in CB AUTO ACTIONS
No, var1-10 is to substitute the variables of the trigger. To substitute from the user object you'd just do normal substitutions (e.g. [name]). To link to the group you either need to supply its raw format or try using the functions of the object like done in the Links usage. The raw format would be as follows.

index.php?option=com_comprofiler&view=pluginclass&plugin=cbgroupjive&action=groups&func=show&cat=[var1_category]&grp=[var1_id]


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