Skip to Content Skip to Menu

[SOLVED] Send email on visit

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago - 9 years 7 months ago #261647 by krileon
Replied by krileon on topic Send email on visit
The view counter is incremented after onBeforeUserProfileDisplay, but before onAfterUserProfileDisplay. You ideally should be using onBeforeUserProfileDisplay trigger. Then just do [cb_visitors] Equal To 0. Your action would then fire, the view counter would increment, and on reload the cb_visitors value should now be 1 so it won't match.


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: 9 years 7 months ago by krileon.

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

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 7 months ago - 9 years 7 months ago #261711 by chanteur94
Replied by chanteur94 on topic Send email on visit
I use the BEFOREprofiledisplay but I don't know why cb_visitors always equal 0 even after x times reload.(i display the [cb_visitors] on my email)

So, always send mail...

(i display [cb_visitors] on the user profile and the value is 1 - So, really I don't understand why 0 Beforeprofiledisplay)

My second problem, that if I use BEFORE pofile display, I can't display on my email the user displayed.

???
Last edit: 9 years 7 months ago by chanteur94.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261735 by krileon
Replied by krileon on topic Send email on visit
onBeforeUserProfileDisplay is "Before Profile Display" in the dropdown. The first variable of the trigger is the displayed users object. So leaving User as Automatic or setting to Manual then selecting Variable 1 should work. All substitutions except those with user specified will be for the displayed users profile data. There's no reason for the substitution data being missing unless the wrong user object is being used, which means User maybe set incorrectly. Please provide screenshots of your auto action configuration.


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.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 7 months ago - 9 years 7 months ago #261736 by chanteur94
Replied by chanteur94 on topic Send email on visit
I have not onBeforeUserProfileDisplay in my dropdown list ...

When I try to use it typing onBeforeUserProfileDisplay , after saving the AutoAction, the trigger display Before Profile Display.
Last edit: 9 years 7 months ago by chanteur94.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261746 by krileon
Replied by krileon on topic Send email on visit
Please read my previous reply carefully. My first sentence explains what onBeforeUserProfileDisplay is "Before Profile Display" in the dropdown.


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.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 7 months ago #261764 by chanteur94
Replied by chanteur94 on topic Send email on visit
The problem is solved after changing in every case [cb:userdata field="cb_xxx" user="#displayed" /] by [cb_xxx]

I thought that it was the same (because i thought that normaly [cb_xxx] use displayed information).

So, what's the difference ?

Thank's for all.

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

Moderators: beatnantkrileon
Powered by Kunena Forum