Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 7 years ago

#5007 closed enhancement (maybelater)

Is @jjj online now?

Reported by: sooskriszta's profile sooskriszta Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: Members Keywords: trac-tidy-2018
Cc: karmatosed@…

Description

"Online now" would be a good feature to have.

There are 2 aspects to it:
1) @username is online now (on the username's profile page, card etc)
2) Who's online now filter for member directory.

There would ideally be 2 checks built into the function:
1) Has admin of community disabled this feature - not all communities may want or need it.
2) Has username turned this feature off in her profile? Some users may want to work stealthily even if admin has enabled this feature.

Change History (8)

#1 @sooskriszta
11 years ago

At least it is infinitely more useful than "online since" which we currently have.

#2 @sooskriszta
11 years ago

I take it that something small and simple like this should do the trick (without the 2 checks mentioned above)
(Thanks, naijaping)

<?php
global $bp;
function check_is_user_online($user_id){
if ( bp_has_members( 'type=online&include='.$user_id) ) return true;
else return false;
}
$this_id = bp_displayed_user_id();
$is_online = check_is_user_online($this_id);
if ($is_online) echo "Online Now";
else{ echo "Offline";}

?>
Last edited 11 years ago by sooskriszta (previous) (diff)

#3 @karmatosed
11 years ago

I personally feel this is more a plugin as it requires a switch I'd love to see it as a plugin at least first.

#4 @karmatosed
11 years ago

  • Cc karmatosed@… added

#5 @modemlooper
11 years ago

Plugin territory for sure.

#6 @johnjamesjacoby
11 years ago

  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 1.0 to 1.2

We already sort of do this with the last_activity usermeta. We could continue using this, and switch the last-active members query to use a more performant transient array of last active user ID's, which would allow us to dial down the last_activity interval to something less 5 minutes.

Either way, to do any of this will take a significant rethink, so moving to future release.

#7 @DJPaul
7 years ago

  • Keywords trac-tidy-2018 added

We're closing this ticket because it has not received any contribution or comments for at least two years. We have decided that it is better to close tickets that are good ideas, which have not gotten (or are unlikely to get) contributions, rather than keep things open indefinitely. This will help us share a more realistic roadmap for BuddyPress with you.

Everyone very much appreciates the time and effort that you spent sharing your idea with us. On behalf of the entire BuddyPress team, thank you.

If you feel strongly that this enhancement should still be added to BuddyPress, and you are able to contribute effort towards it, we encourage you to re-open the ticket, or start a discussion about it in our Slack channel. Please consider that time has proven that good ideas without contributions do not get built.

For more information, see https://bpdevel.wordpress.com/2018/01/21/our-awaiting-contributions-milestone-contains/
or find us on Slack, in the #buddypress channel: https://make.wordpress.org/chat/

#8 @DJPaul
7 years ago

  • Milestone Awaiting Contributions deleted
  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.