Skip to Content Skip to Menu

Auto Actions Trigger List and Descriptions

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
9 years 5 months ago #278190 by xengent
Replied by xengent on topic Auto Actions Trigger List and Descriptions
Any use cases I can look at for changing profile field, or changing usergroup for a specific user via a URL link (with their username specified in the URL)?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49437
  • Thanks: 8463
  • Karma: 1465
9 years 5 months ago #278193 by krileon
Replied by krileon on topic Auto Actions Trigger List and Descriptions
You don't want to be doing that to be honest. That's dangerous unless you plan to secure the URL with some sort of special access token. The below would work and includes some very basic security.

Global
Triggers: None
Type: Usergroups
User: Automatic
Access: Everybody
Conditionals
1: [get_token] Equal To ACCESS_TOKEN_HERE
Action
Mode: Add Usergroups
Groups: SELECT_USERGROUPS_HERE

Next you'd use the URL provided on the Global tab to execute the action. However, you need to be able to specify who the target user is and include your security token. So the URL needs to have &users=USER_ID_HERE and &token=ACCESS_TOKEN_HERE and would look like the following for example.

index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=action&actions=ACTION_ID_HERE&users=USER_ID_HERE&token=ACCESS_TOKEN_HERE


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.

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
9 years 5 months ago #278194 by xengent
Replied by xengent on topic Auto Actions Trigger List and Descriptions
The only problem is that I need to use username instead of userID. You said I can use substitutions inside the action? How do I do this, so that I pass the username instead of the userID?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49437
  • Thanks: 8463
  • Karma: 1465
9 years 5 months ago #278196 by krileon
Replied by krileon on topic Auto Actions Trigger List and Descriptions
You can't use username. It won't construct a user object off username. Why do you need to use username?


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.

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
9 years 5 months ago #278198 by xengent
Replied by xengent on topic Auto Actions Trigger List and Descriptions
I need to pass the URL from an external CRM system, and I have a username convention that will allow me to pass that data from that external CRM. The Joomla userID doesnt mean much to anyone other than being a Joomla user ID. I need to identify the user based on either the username or another field on the profile (which I have a few of).

Is there no other way to id the user in the string?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49437
  • Thanks: 8463
  • Karma: 1465
9 years 5 months ago #278225 by krileon
Replied by krileon on topic Auto Actions Trigger List and Descriptions

Is there no other way to id the user in the string?

Nope, not unless you used a Code action and set the Method to PHP then in your custom PHP code loaded a user object from the username supplied in the URL (substituted with [get_username] for example).


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