Open tw2113 opened 11 years ago
Notes for ajax/js powered user list, including heartbeat api:
if user is logged in and visits page localized data to indicate user ID ajax post that sets user meta. user meta to indicate they're online and viewing current page
timer + ajax to create list of users. $.get request that fetchs all users with logged in user meta.
js onunload ajax delete logged in user meta when navigate away from page.
[16:14]
Heartbeat api user logout notification is now in core and its UI has been tweaked to directly show the login box, rather than prompting first. According to Ozz, there was discussion as to whether it was better not to block a user’s access to the editor/current page when it was detected they not longer had a login token, since it would stop the user while they were in the middle of a sentence.
http://core.trac.wordpress.org/attachment/ticket/23216/heartbeat-test-plugin.php
heartbeat_nopriv_tick(action)
heartbeat_nopriv_send(filter)
heartbeat_nopriv_receive(filter)
heartbeat_tick(action)
heartbeat_send(filter)
heartbeat_receive(filter)
heartbeat_settings(filter)
contextual menu with basic user info? hover/click button that does a js/css popup with user name?