[buddypress-trac] [BuddyPress Trac] #3590: Who's online widget quick to show me not online.

buddypress-trac noreply at wordpress.org
Wed Sep 10 14:33:08 UTC 2014


#3590: Who's online widget quick to show me not online.
---------------------------+-----------------------------
 Reporter:  pengume        |       Owner:
     Type:  enhancement    |      Status:  reopened
 Priority:  high           |   Milestone:  Future Release
Component:  Members        |     Version:
 Severity:  trivial        |  Resolution:
 Keywords:  needs-refresh  |
---------------------------+-----------------------------

Comment (by tomlandon_author):

 Dear boonebgorges, thanks a lot for replying - over all for your great
 work. Well, a user is registered to be online, as long as he does not
 click the LOGOUT-LINK (="offline"). The filter decision is suppost to be
 "either the user is logged in or he is logged-out". Right? After logging-
 in the BuddyPress widget "users online" simply would have to filter, if
 there are LOGGED-IN users to be shown. Of course the logged-out users do
 not have to be exposed.

 So: "LAST ACTIVE" is not really important for that case/issue. Let us
 think about the BP plug-in "RS Buddypress Activity Refresh". It does
 nearly the same: Simply seeking for new posts and showing them in the BP
 history.

 If it could be included to search the BP database for CURRENTLY LOGGED-IN
 USERS in a frequency, that is adjustable in the ADMIN SECTION, it would be
 perfect. Even, if the time value (in ms) for the time being could be set
 by editing the code it would be great.

 Maybe something like that would do it:


 {{{
 <script type="text/javascript">
 function WidgetRefresh() {
 $("#bpwidgetrefr").load(location.href+" #bpwidgetrefr>*","");
 }
 setInterval(function() {
 WidgetRefresh();
 }, 50000);
 </script>
 }}}

 But: I really don't know, if this would cause errors due to existence of
 other JS.

 Thanks again for answering.

 Truly

 Tom LANDON

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3590#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list