Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

#5387 closed enhancement (fixed)

Add parameters to bp_member_last_active().

Reported by: lenasterg Owned by: boonebgorges
Milestone: 2.0 Priority: low
Severity: minor Version: 1.9.2
Component: Members Keywords:
Cc:

Description

Add parameters to bp_member_last_active(). Introducing new 'view_active' parameter to to control generation of 'active' string or not.
This make it easier for non English installations to hide the 'active' string.


Attachments (1)

bp-members-template.php.patch (1.4 KB) - added by lenasterg 6 years ago.
Suggested changes at bp-members-template file

Download all attachments as: .zip

Change History (3)

@lenasterg
6 years ago

Suggested changes at bp-members-template file

#1 @boonebgorges
6 years ago

  • Milestone changed from Awaiting Review to 2.0

We do have a filter that could be used for this purpose, but I don't see any harm in adding a parameter as requested as well.

#2 @boonebgorges
6 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 7846:

Add 'active_format' parameter to bp_get_member_last_active()

This new param allows theme authors to specify whether they'd like the current
user's last activity string in the format "Active 5 minutes ago" vs the simpler
"5 minutes ago".

Fixes #5387

Props lenasterg

Note: See TracTickets for help on using tickets.