0
The idea is to show visitors to the site if the author of the post is online or offline, there is some plugin or some code in PHP that makes this check?
Xenforo has this feature, I would like to apply on my blog.
Examples:
I looked in several places, including here in the stack in Portuguese and in the stack in English, but I couldn’t find a way to do it.
I know the purpose of the forum is to answer direct questions, but I had no choice but to ask here.
You will have to use Ajax. And in addition a table that is consulted every time interval. This solution is the most trivial of all. I imagine an online author who enters the site and changes their status to on. So this status should have a minimum life cycle in seconds. When the Ajax script stops sending the status you can change the behavior of capturing statues
– Atila Silva
and a good solution, but as we are dealing with Wordpress, the idea was a simple function, just to check if the author this online, if he was there show the indicator online, thanks for responding.
– Vitor Hugo
The answer can be found here: Solution to the question
– JassRiver