Skip to Content Skip to Menu

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

Auto Actions Trigger List and Descriptions

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
8 years 8 months ago #277985 by xengent
The trigger list on the Auto Actions plugin is very long and sometimes I don't know what each does.

For example whats the difference between "After User Update" and "After Update User"?

Is there a list with descriptions of what each trigger does?

I'm trying to change usergroups for a user based on a profile field being updated and being triggered on the saving of the profile (whether it be by the user or the moderator). Which trigger do I use?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278020 by krileon
Replied by krileon on topic Auto Actions Trigger List and Descriptions

For example whats the difference between "After User Update" and "After Update User"?

onAfterUserUpdate is frontend user edit save and onAfterUpdateUser is backend user edit save.

Is there a list with descriptions of what each trigger does?

Nope, not at this time. For the most part they're self explanatory. For example after user update is after the user has updated. After update user is after updating a user. All the new triggers are a little more specific though, but some of the older triggers may still be a little vague.

I'm trying to change usergroups for a user based on a profile field being updated and being triggered on the saving of the profile (whether it be by the user or the moderator). Which trigger do I use?

Both onAfterUserUpdate and onAfterUpdateUser.


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
8 years 8 months ago #278035 by xengent
Replied by xengent on topic Auto Actions Trigger List and Descriptions
Is there a way to access this action via the manual URL (link), and specify the user in the URL? Or do I need to create a separate action for this?

I'm trying to have the following:

1. user change this field via their profile
2. moderator change it for user via user's profile update
3. user execute via a link anywhere on the CMS
4. moderator execute (on user's profile) via a link anywhere on the CMS

Do I need to create separate actions, or can I use the same action?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278064 by krileon
Replied by krileon on topic Auto Actions Trigger List and Descriptions

Is there a way to access this action via the manual URL (link), and specify the user in the URL?

Only if Triggers is set to None. You can then specify &users=USER_ID. Note &users= can accept a comma separated list of user ids if you want to send more than 1.

Do I need to create separate actions, or can I use the same action?

Yes, you need separate actions as you can't directly access an action without Triggers being set to None. Allowing direct access to an action with triggers causes the action to be unable to know what to expect. I don't recommend you directly change a users field with a URL unless you've safely secured. To do that you need 3 actions. 1 is acting on the triggers, 1 accepts &user= and has access set to Super Users or something only moderators have, and 1 has User set to User so it always acts on the viewing user (this one the enduser would click).


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
8 years 8 months ago #278095 by xengent
Replied by xengent on topic Auto Actions Trigger List and Descriptions
Can I use the username (or other custom fields) instead of the &users=USER_ID ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278163 by krileon
Replied by krileon on topic Auto Actions Trigger List and Descriptions
No, the URL can only accept User ID. You can then use any substitutions you want inside your action it self like username, etc..


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