Skip to Content Skip to Menu

[SOLVED] CB Suto Actions and inactivity time of users

  • Digigreg
  • Digigreg
  • OFFLINE
  • Posts: 38
  • Thanks: 8
  • Karma: 0
7 years 3 months ago - 7 years 3 months ago #291108 by Digigreg
Hello,
I'm trying to execute an auto action (filling a CB field) when an user is not active for more than 15 minutes. I don't mean an user should logout, just, maybe, leave the website without to logging out.
For example, can I get by trigger in CB Auto Actions the parameter contains if an user is online or not?

Thanks for the precious helps.
Greg
Last edit: 7 years 3 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
7 years 3 months ago #291127 by krileon
Replied by krileon on topic CB Suto Actions and inactivity time of users
There's no trigger for that. You'd likely need jQuery and use ajax to call the actions URL directly with triggers set to None for you to be executing it at regular intervals. That jQuery would need to be preset on every page basically as well.


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.

  • Digigreg
  • Digigreg
  • OFFLINE
  • Posts: 38
  • Thanks: 8
  • Karma: 0
7 years 3 months ago #291131 by Digigreg
Replied by Digigreg on topic CB Suto Actions and inactivity time of users
I see,
so changing the way from the root, how can I achieve a list of online users? (if there is a way)... But I know modules can get that parameter, so I ask to myself, why not the list... Maybe just I haven't seen how to set.
Basically I'd like to obtain a cb list of all online users.

Thanks Krileon,
regards.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
7 years 3 months ago #291145 by krileon
Replied by krileon on topic CB Suto Actions and inactivity time of users
You can output a list of online users using a userlist and an advanced filter. The below advanced filter in your userlist should work.

Code:
( SELECT COUNT(*) FROM `#__session` AS s WHERE s.`userid` = u.`id` AND s.`guest` = 0 ) > 0


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

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

  • Digigreg
  • Digigreg
  • OFFLINE
  • Posts: 38
  • Thanks: 8
  • Karma: 0
7 years 3 months ago #291215 by Digigreg
Replied by Digigreg on topic CB Suto Actions and inactivity time of users
Perfect, it works properly. Setting a shorter session lifetime helps me to have the real number of online users.

Thanks,
regards.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn