Skip to Content Skip to Menu

[SOLVED] [#6224] CB Auto action trigger for reconfirm email

8 years 1 month ago #286319 by crealiagroup
Replied by crealiagroup on topic CB Auto action trigger for reconfirm email
I've tested also this solution with many different combination, but no way.
Thanks anyway.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #286329 by krileon
Replied by krileon on topic CB Auto action trigger for reconfirm email
Have added a feature ticket to add a trigger specific to CB Reconfirm Email which should allow for this.

forge.joomlapolis.com/issues/6224


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: crealiagroup

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

8 years 1 month ago #286330 by crealiagroup
Replied by crealiagroup on topic CB Auto action trigger for reconfirm email
Thanks so much Kyle!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago - 8 years 1 month ago #286344 by krileon
Replied by krileon on topic CB Auto action trigger for reconfirm email
Ok, CB Reconfirm Email 4.0.3 should be out sometime today or early tomorrow. The following triggers were added.

Code:
$_PLUGINS->trigger( 'reconfirm_onBeforeCancel', array( &$user, &$reconfirmEmail, $confirmcode ) ); $_PLUGINS->trigger( 'reconfirm_onAfterCancel', array( $user, $reconfirmEmail, $confirmcode ) ); $_PLUGINS->trigger( 'reconfirm_onBeforeConfirm', array( &$user, &$reconfirmEmail, $confirmcode ) ); $_PLUGINS->trigger( 'reconfirm_onAfterConfirm', array( $user, $reconfirmEmail, $confirmcode ) );

In your case you'd just use reconfirm_onAfterConfirm. The $user object is current user object with new email address already applied at this point. $reconfirmEmail is the object the plugin uses to handle the change. It'll contain the following variables.

user_id
from (old email address)
to (new email address)
code (activation code)
date (date of the request)
status (status of the request; P = pending, A = accepted, X = cancelled)


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: 8 years 1 month ago by krileon.
The following user(s) said Thank You: crealiagroup

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

8 years 1 month ago #286360 by crealiagroup
Replied by crealiagroup on topic CB Auto action trigger for reconfirm email
Thanks so much, I'll test it as soon as possible.

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

8 years 1 month ago #286386 by crealiagroup
Replied by crealiagroup on topic CB Auto action trigger for reconfirm email
Hi Kyle,

I'm testing the version 4.0.3. Downloaded 1 hour ago. Are the new triggers already implemented? I don't find them in the trigger list but I type in the trigger you suggest me and I change email address, the auto action is executed.

Anyway the autoaction is executed without conditions assigned meanwhile I need this: if the new email address contains a specific domain for the email address (@mydomain.example) then the auto action must be fired otherwise not.

The trigger seems already implemented, I suppose, but I cannot let it work as intended for my condition. I've tested:

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

Moderators: beatnantkrileon
Powered by Kunena Forum