Skip to Content Skip to Menu

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

[SOLVED] Require Email Confirm with AutoActions

11 years 2 months ago - 11 years 2 months ago #231832 by thoughtscape
We have two user types for Community Builder registration and they each require a different Registration Pending Approval email, but Community Builder allows for only a single mail for all registrations (as specified under the registration tab in CB configuration).

I've seen the posting about how to create the multiple emails.
The problem that I'm having is how to require the email confirmation using AutoActions.

I've set Require Email Confirmation in Community Builder configuration to No.
I've created an AutoAction to set the confirmed field to false.
But when the user registers they are confirmed, approved and enabled.
What do I need to do in AutoActions to require an email confirmation?

Thanks

james
Last edit: 11 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #231871 by krileon
Replied by krileon on topic Require Email Confirm with AutoActions
How are you determining user type? If it's by a CB field then you don't need CB Auto Actions for this at all. You can just use IF substitutions in your Pending/Welcome emails to change what the message should say. Example as follows.

[cb:if cb_type="Teacher"]Text to send to the Teacher type.[/cb:if]
[cb:if cb_type="Student"]Text to send to the Student type.[/cb:if]

More information on substitutions can be found in the below tutorial.

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

If still going to use CB Auto Actions then the below triggers should work for the various situations.

onAfterUserRegistration = After user has registered
onAfterUserApproval = After user has been approved by an Admin.
onAfterUserConfirm = After user has confirmed their email address.
onBeforeUserActive = Before user has become completely active (confirmed, approved, and enabled)


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.

11 years 2 months ago #231948 by thoughtscape
Replied by thoughtscape on topic Require Email Confirm with AutoActions
I had a feeling that I was trying to do this the wrong way.
That was the answer!
Thanks!

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

Moderators: beatnantkrileon
Powered by Kunena Forum