Skip to Content Skip to Menu

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

Trigger after first profile update ?

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 5 months ago #226834 by dotcom22
Trigger after first profile update ? was created by dotcom22
hello

I wondering if you have a trigger "after first profile update" available. This trigger is not listed in Auto-Action but I know you have some trigger available but not currently listed such "onAfterUserProfileEditCancel".

In fact I use CBsubs and I setup "URL for first login visit" page where I explain is necessary to change password (because password is auto-generated in my case). So users are supposed to update their password just after reading my page and I would like redirect them to another "welcome page" after making this task. Then if users will later update their profile, I would like redirect them to another page (never on their profile), reason why the trigger mentioned could be useful in this case.

any clue ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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 #226835 by krileon
Replied by krileon on topic Trigger after first profile update ?
There's no after first profile update trigger and lastupdatedate is updated before storing the user so no trigger will be able to only act if lastupdatedate is empty. Best bet is to use a CB field to flag a state. For example a checkbox field. If it's not equal to 1 then it's not checked and perform whatever action you like. Have a second action that fires right after that with the same conditionals, etc.. that changes the checkbox to 1.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 5 months ago #226859 by dotcom22
Replied by dotcom22 on topic Trigger after first profile update ?
yes but based of what I can flag a state if lastupdatedate is updated before storing the user ? Not sure to understand...

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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 #226867 by krileon
Replied by krileon on topic Trigger after first profile update ?
You create a checkbox field that is Read Only. You create your first action that performs whatever usage you want. This first action checks that the checkbox is checked ([cb_checkbox ]Not Equal To 1) and then does whatever action you want it to do. You then copy this action and change it to a Field action. You then have it set the checkbox field to 1. This will ensure it only fires 1 time giving you the "after first profile update" usage as you're wanting. There is no trigger for after first profile update so this is your only solution.


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