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] CB Registration Pending Approval Email and Autoactions

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
11 years 5 months ago - 11 years 4 months ago #227685 by boyjahq
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 am trying to use the Auto Action plugin to achieve the differentiated email approach that we need. Our site is also in 2 different languages, so we must use string substitutions in places like mail subject and message body.

I have successfully created an action that sends email for each user type, but the tags inside the email message such as [CONFIRM] and [DETAILS] are not converting to the proper data as they should. They remain as the text [CONFIRM] and [DETAILS].

I know that these tags work properly because if I put the same language string substitutions into the Pending Approval Email box under CB Configuration/Registration, the tags are converted to proper dynamic data when the email is sent upon registration.

How can I get this to happen for emails that are generated by Auto Actions?

We are using
Auto Actions 4
CBSubs 3
CB 1.9
Joomla 2.5.11
We have 2 languages: en-GB and ja-JP
Last edit: 11 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago - 11 years 5 months ago #227700 by krileon
[CONFIRM] and [DETAILS] don't work everywhere. They are not substituted by CB Auto Actions. Try using normal substitutions like [username], [name], [password], etc.. You can build the confirmation link manually with the below.

[cb:config param="live_site" /]/index.php?option=com_comprofiler&task=confirm&confirmcode=[cbactivation]


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.
Last edit: 11 years 5 months ago by krileon.
The following user(s) said Thank You: boyjahq

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

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
11 years 4 months ago - 11 years 4 months ago #228299 by boyjahq
Thank you for your reply. All substitutions are working as you recommended except for [password]. This shows up in notification emails showing [password] instead of the actual password. I have tried using upper case and lower case letters but the result is the same. Is there something else I must do to get the password to display in the email?

I am using onAfterUserRegistration trigger for this action.

Also, how can I get name or items for both Parent Plan and Child Plan to show in emails? If I use substitution [PLAN_NAME] it only shows the name for the Parent Plan. I would like to show both, as it displays on the payslip or invoice, for example.
Last edit: 11 years 4 months ago by boyjahq.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228329 by krileon
[password] should be working fine. Ensure you're using the latest release of CB Auto Actions (4.0.0).

Also, how can I get name or items for both Parent Plan and Child Plan to show in emails? If I use substitution [PLAN_NAME] it only shows the name for the Parent Plan. I would like to show both, as it displays on the payslip or invoice, for example.

CB Auto Actions doesn't process CBSubs substitutions.


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.

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
11 years 4 months ago #228406 by boyjahq
We are using
Auto Actions 4.0.0
CBSubs 3
CB 1.9
Joomla 2.5.11
We have 2 languages: en-GB and ja-JP

We have the following text in a notification mail:

The following are the login account details from your membership application:

Email:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228442 by krileon
Not sure what more to advise. I've confirmed in multiple tests it's working perfectly fine using onAfterUserRegistration. Note onAfterUserRegistration only works for frontend registrations, it does not work for backend registrations. You can also try accessing the password directly from user object using [var1_password] on that trigger.


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.
The following user(s) said Thank You: boyjahq

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

Moderators: beatnantkrileon
Powered by Kunena Forum