Skip to:

Opened 11 years ago

Closed 7 years ago

#2031 closed enhancement (fixed)

Last post date-time instead of Freshness

Reported by: sooskriszta's profile sooskriszta Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.1
Component: General - Content Creation Keywords: has-patch commit
Cc: vivek@…


One feature that I struggle a bit in why bbPress broke from the norm is Freshness. It is customary to have the last column for “Last post” which includes the date-time of last post (topic/reply) and the author of last post.

bbPress has decided to use “Freshness” instead of “Last post” as title. Instead of date-time, it displays time-since.

Perhaps time to move to the more convention approach here. Probably good for performance too - won't need to calculate freshness.

Attachments (6)

bbpress.JPG (26.5 KB) - added by sooskriszta 11 years ago.
phpbb.JPG (37.6 KB) - added by sooskriszta 11 years ago.
smf.JPG (60.7 KB) - added by sooskriszta 11 years ago.
Simple Machines Forum
vbulletin.JPG (68.1 KB) - added by sooskriszta 11 years ago.
2031.diff (431 bytes) - added by Robkk 8 years ago.
Change Topics by Freshness to Topics by Latest Post.
2031.01.patch (1.8 KB) - added by thebrandonallen 7 years ago.

Download all attachments as: .zip

Change History (20)

11 years ago


11 years ago


11 years ago

Simple Machines Forum

11 years ago


#1 @alexvorn2
11 years ago

Why bbPress should look like others?
"bbPress is plain and simple forum software, plain and simple"

Last edited 11 years ago by alexvorn2 (previous) (diff)

#2 @johnjamesjacoby
11 years ago

  • Component changed from Forums to Content Creation
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Valid, though easily handled in a theme; there are functions to support this if you want this on your own site.

Closing as wontfix. If it turns into a popular request, we can reopen and revisit this then.

#3 @sooskriszta
9 years ago

  • Cc vivek@… added
  • Milestone set to Awaiting Review
  • Resolution wontfix deleted
  • Status changed from closed to reopened

Question is: Why does bbPress go through the extra effort for no benefit? If anything, there's probably a slight performance hit that it takes due to the additional calculation...

bbPress is making an additional calculation, bending over backwards, just to calculate how many seconds, minutes or days have passed since last post.

In this sense, bbPress is breaking from convention that most forum users are familiar with without making performance gains (in fact making performance losses) opposed to breaking from convention for performance (or other) gains, which is understandable.

I don’t see the reason and I don’t like it this way. But since it is like this then I must assume that there are other bbPress users who do. Hence…perhaps this should be configurable.

Last edited 9 years ago by sooskriszta (previous) (diff)

#4 @netweb
9 years ago

  • Milestone changed from Awaiting Review to Future Release

There is now a plugin that will do this:

I'll put this in 'Future Release', if a patch comes along we can then add it to an upcoming milestone.

If anyone wants to take a shot at this checkout how it is done currently in bbp_get_topic_post_date.

#5 @netweb
9 years ago

  • Severity changed from major to normal

#6 @magicroundabout
9 years ago

[Please be nice, I'm an experienced dev but pretty new to Trac. If this conversation belongs in support forums let me know and I'll take it there]

I have to say that I'm a bit confused by this. There seems to be a difference between topic "post date" and topic "freshness".

I'm building a theme where, actually, I want to interleave posts and topics in a display based on their recentness (by which, for topics, I mean "freshness"). So I want to do a comparison (in a usort callback) based on the freshness of the topic - when it was last active.


  • bbp_get_topic_post_date doesn't give me the freshness;
  • the plugin is no good because I don't want to affect every display of freshness; and
  • bbp_get_topic_last_active_time doesn't give me any choice about how to format the last active date

The only way I can see is to write my own function that looks very much like bbp_get_topic_last_active_time, but that doesn't do the bbp_get_time_since.

I'd really like something like:

	function bbp_get_topic_last_active_timestamp( $topic_id = 0 ) {
		$topic_id = bbp_get_topic_id( $topic_id );

		// Try to get the most accurate freshness time possible
		$last_active = get_post_meta( $topic_id, '_bbp_last_active_time', true );
		if ( empty( $last_active ) ) {
			$reply_id = bbp_get_topic_last_reply_id( $topic_id );
			if ( !empty( $reply_id ) ) {
				$last_active = get_post_field( 'post_date', $reply_id );
			} else {
				$last_active = get_post_field( 'post_date', $topic_id );

		// Return the time since
		return apply_filters( 'bbp_get_topic_last_active_timestamp', $last_active, $topic_id );


and then bbp_get_topic_last_active() could be:

	function bbp_get_topic_last_active_time( $topic_id = 0 ) {

		$last_active_time = bbp_get_topic_last_active_timestamp( $topic_id );
		$last_active = !empty( $last_active_time ) ? bbp_get_time_since( bbp_convert_date( $last_active_time ) ) : '';

		// Return the time since
		return apply_filters( 'bbp_get_topic_last_active', $last_active, $topic_id );

Is that reasonable? I'm not up to speed with coding standards but could get that way if you think I needed to just submit a patch?

Does this look like a reasonable thing to do?

#7 @netweb
9 years ago

@magicroundabout This does seem reasonable though it is not specifically what this ticket is requesting, the ticket is about changing the default time/date format bbPress displays topic freshness.

That said, this does belong in Trac, just not this ticket so please create a new ticket and we'll take a closer look.

#8 @dyrer
8 years ago

Any thoughts to change "freshness" to "latest posts" or "last post", on next release?
I am translator and many bbpress users complain about "freshness" as bad terminology

#9 @johnjamesjacoby
8 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from reopened to closed

In 5867:

Strings: Switch from "Freshness" to "Last Post" in the default theme-compatibility templates.

This changeset updates the column header text used to describe the last activity of a forum/category or topic in bbPress's default theme-compatibility (which includes details beyond just the timestamp) making "Last Post" more contextually accurate compared to "Freshness" which still makes sense within the dashboard (which currently only shows the timestamp.)

Fixes #2031.

#10 @netweb
8 years ago

  • Milestone changed from Future Release to 2.6

#11 @dyrer
8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

There is also need to be changed at

'name' => __( 'Topics by Freshness', 'bbpress' )


'name' => __( 'Topics by Date', 'bbpress' )

or something else like by Last activity

Last edited 8 years ago by netweb (previous) (diff)

#12 @netweb
8 years ago

And another

'description' => __( 'A list of recent topics, sorted by popularity or freshness.', 'bbpress' )

8 years ago

Change Topics by Freshness to Topics by Latest Post.

#13 @thebrandonallen
7 years ago

  • Keywords has-patch commit added

Attached patch fixes last remaining string references to "Freshness". Also sneaks in a whitespace fix.

#14 @netweb
7 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 6047:

Strings: Switch from "Freshness" to "Last Post" in the admin screens.

This changeset follows on from [5867] where these couple of strings were missed in the original commit.

Props Robkk, thebrandonallen
Fixes #2031

Note: See TracTickets for help on using tickets.