[SOLVED] Update Account Message

6 years 10 months ago - 6 years 10 months ago #295406 by highonryan
[SOLVED] Update Account Message was created by highonryan
Hello,

I would like to display an alert or pop-up on a specific page asking the user to verify/update their account info if it has not been updated in 1 year or more.

Is there an auto action or some other way I could do this.

** EDIT **

I was thinking of doing a redirect to their update profile page, with an alert that displays.

I'm not sure how to achieve this. I could set up a Redirect action, Trigger: onAfterLogin, set the condition to [lastupdatedate] to an operator that determines more than 365 since last update date., then Action: redirect to URL with Alert.

Am I headed in the right direction?

Thanks,
Ryan

Please Log in to join the conversation.

6 years 10 months ago #295416 by krileon
Replied by krileon on topic Update Account Message

Am I headed in the right direction?

Yes, but you'll need to use format functions to properly compare dates. Example as follows.

[cb:parse function="time"][lastupdatedate][/cb:parse] Less Than or Equal To [cb:parse function="time" time="-2 MONTHS"][cb:date format="Y-m-d H:i:s" /][/cb:parse]

That for example would trigger if they haven't updated their profile in the last 2 months. The below for example would be 1 year.

[cb:parse function="time"][lastupdatedate][/cb:parse] Less Than or Equal To [cb:parse function="time" time="-1 YEAR"][cb:date format="Y-m-d H:i:s" /][/cb:parse]


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

Please Log in to join the conversation.

6 years 10 months ago #295427 by highonryan
Replied by highonryan on topic Update Account Message
This did the trick!!!

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

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.197 seconds

Facebook Twitter LinkedIn