FreiChat related discussions
Make user status 'online' when sending a chat message

Dear Codologic,

As I understand, the user's status is set to 'Busy', automatically after a certain period of non-activity (setting in backend- Additional). If this status has been changed to 'Busy' by this process, and I move my mouse, the status changes back to 'Available'.

If I manually chose for the status 'Busy', and I move my mouse, the status does not change back to 'Available' automatically, I need to manually change it back myself.

I don't know if the following is possible. It would be however, a great way of saving bandwidth and server resources. Without losing (in my case) too much of the functionality.

I would like the status to turn to 'Busy' after a certain period, as given in the backend (let's say 15 minutes). However, the status remains 'Busy' when the mouse moves. And it turns back to 'Available' if this person sends a message. A new message, starting a chat, or replying to another person's message. The status will change to 'Available' when you send it.

How would I be able to achieve this?

Greets!

Jeroen

Dear Codologic, As I understand, the user's status is set to 'Busy', automatically after a certain period of non-activity (setting in backend- Additional). If this status has been changed to 'Busy' by this process, and I move my mouse, the status changes back to 'Available'. If I manually chose for the status 'Busy', and I move my mouse, the status does not change back to 'Available' automatically, I need to manually change it back myself. I don't know if the following is possible. It would be however, a great way of saving bandwidth and server resources. Without losing (in my case) too much of the functionality. I would like the status to turn to 'Busy' after a certain period, as given in the backend (let's say 15 minutes). However, the status remains 'Busy' when the mouse moves. And it turns back to 'Available' if this person sends a message. A new message, starting a chat, or replying to another person's message. The status will change to 'Available' when you send it. How would I be able to achieve this? Greets! Jeroen

Your idea does save bandwidth, but it introduces some problems.

  • If the person does not send a message for a long time, the status will change to offline
  • If the user has opened multiple tabs, freichat has to communicate to all other tabs when a message is sent.
Your idea does save bandwidth, but it introduces some problems. - If the person does not send a message for a long time, the status will change to **offline** - If the user has opened multiple tabs, freichat has to communicate to all other tabs when a message is sent.

Hello Adesh,

thanks for the reply.

Well, the condition for going 'offline' could remain. That after, lets say 30 minutes, of no mousemovement, the user should go 'offline'. And not after 30 minutes of not sending a message.

About the tabs. I am not sure how this works. I had the idea that if you send a message, in any tab, your status will change to 'online' (and the server request time will go to 5 sec., instead of the 30 - 60 sec.). And the other tabs, will see you as 'online' automatically, just as you would change your status manually. If you would change your status manually, the updated status (and accompanying server request time) would also needed to be updated for all tabs.

I do feel however it sounds like a real customized request. I will try and build it, and let you know if it works. Or would it not work anyway because of the tab issue you mentioned?

Hello Adesh, thanks for the reply. Well, the condition for going 'offline' could remain. That after, lets say 30 minutes, of no mousemovement, the user should go 'offline'. And not after 30 minutes of not sending a message. About the tabs. I am not sure how this works. I had the idea that if you send a message, in any tab, your status will change to 'online' (and the server request time will go to 5 sec., instead of the 30 - 60 sec.). And the other tabs, will see you as 'online' automatically, just as you would change your status manually. If you would change your status manually, the updated status (and accompanying server request time) would also needed to be updated for all tabs. I do feel however it sounds like a real customized request. I will try and build it, and let you know if it works. Or would it not work anyway because of the tab issue you mentioned?
187
3
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft