Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

#5387 closed enhancement (fixed)

Add parameters to bp_member_last_active().

Reported by: lenasterg Owned by: boonebgorges
Priority: low Milestone: 2.0
Component: Members Version: 1.9.2
Severity: minor 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 12 years ago.
Suggested changes at bp-members-template file

Download all attachments as: .zip

Change History (3)

@lenasterg
12 years ago

Suggested changes at bp-members-template file

#1 @boonebgorges
12 years ago

  • Milestone Awaiting Review2.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
12 years ago

  • Owner set to boonebgorges
  • Resolutionfixed
  • Status newclosed

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.