2014-10-05, 02:37 PM
Hey there,
recently I wrote a feature for forums, I take care of, that updates list of people online via ajax.
However, after some time of inactivity, it doesn't show the user who is still online. I would like this script also to notify the server that user is still online.
I added NO_ONLINE flag to prevent location change (because every 20 seconds the location of user was unknown).
I would like to know how to update only timestamp of online record but not the location (leaving last location saved).
MyBB 1.6.14
Thanks in advance.
P.S. Googled, but without success so don't send replies like lmgtfy.
recently I wrote a feature for forums, I take care of, that updates list of people online via ajax.
However, after some time of inactivity, it doesn't show the user who is still online. I would like this script also to notify the server that user is still online.
I added NO_ONLINE flag to prevent location change (because every 20 seconds the location of user was unknown).
I would like to know how to update only timestamp of online record but not the location (leaving last location saved).
MyBB 1.6.14
Thanks in advance.
P.S. Googled, but without success so don't send replies like lmgtfy.