Skip to:

Opened 5 years ago

Closed 5 weeks ago

#5007 closed enhancement (maybelater)

Is @jjj online now?

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


"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 @OC2PS
5 years ago

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

#2 @OC2PS
5 years ago

I take it that something small and simple like this should do the trick
(Thanks, naijaping)

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";}

Version 1, edited 5 years ago by OC2PS (previous) (next) (diff)

#3 @Tammie Lister
5 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 @Tammie Lister
5 years ago

  • Cc karmatosed@… added

#5 @modemlooper
5 years ago

Plugin territory for sure.

#6 @John James Jacoby
5 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 @Paul Gibbs
5 weeks 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
or find us on Slack, in the #buddypress channel:

#8 @Paul Gibbs
5 weeks ago

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