Skip to Content Skip to Menu

[SOLVED] CB AutoAction help "onAfterUserApproval"

  • fredc15
  • fredc15
  • OFFLINE
  • Posts: 37
  • Thanks: 5
  • Karma: 0
8 years 11 months ago - 8 years 11 months ago #285172 by fredc15
Hi,

I've setup an auto action to trigger an email to an admin (super admin for now) after a user has been approved.
1. the CB Autoaction plugin looks to be installed and published correctly
2. triggers has "onAfterUserApproval" set
3. Published "yes"
4. Type "email"
5. User "User"
6. Access "CMS ACL - Super User
7. Conditions Tab is currently blank
8. Action Tab has all the email parameters set.

Am I missing something in the Conditions Tab or am I using the wrong trigger.

Thanks,
Last edit: 8 years 11 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49441
  • Thanks: 8467
  • Karma: 1465
8 years 11 months ago #285219 by krileon
Replied by krileon on topic CB AutoAction help "onAfterUserApproval"
What's wrong with it? Sorry, you've described what you've done but not what's wrong with it. The major thing that stands out is you've set "User" to "User", which means the substitutions will be based off the user doing the approving and not the user being approved (leave it as Automatic for that).


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.

  • fredc15
  • fredc15
  • OFFLINE
  • Posts: 37
  • Thanks: 5
  • Karma: 0
8 years 11 months ago #285277 by fredc15
Replied by fredc15 on topic CB AutoAction help "onAfterUserApproval"
Hi,

I believe I have set this up so that an Admin receive an email after a user is manually approved. As of now, the autoaction I setup to do this is not working. I changed user setting to as you recommend. Still not working...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49441
  • Thanks: 8467
  • Karma: 1465
8 years 11 months ago #285279 by krileon
Replied by krileon on topic CB AutoAction help "onAfterUserApproval"
Set "User" to "Automatic" and "Access" to "Everybody". Next ensure you've manually supplied your email address for the To address. All substitutions will be for the user being approved (e.g. so you can include [username] if you want). Your auto action should look like the following.

Global
Triggers: onAfterUserApproval
Type: Email
User: Automatic
Access: Everybody
Conditions
1. [var2] Equal To 1

The condition ensures it only sends if they're being approved. If still not working you'll need to describe how you're approving users.


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.

  • fredc15
  • fredc15
  • OFFLINE
  • Posts: 37
  • Thanks: 5
  • Karma: 0
8 years 11 months ago #285312 by fredc15
Replied by fredc15 on topic CB AutoAction help "onAfterUserApproval"
Hi,

Its working now. It was the conditions part that I was missing/didn't understand.

Thanks,
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum