Skip to content

Instantly share code, notes, and snippets.

@ntwb
Created July 18, 2012 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntwb/3133451 to your computer and use it in GitHub Desktop.
Save ntwb/3133451 to your computer and use it in GitHub Desktop.
bbpress custom last_poster_block_topics
<?php
// bbpress custom last_poster_block_topics code by @Lynq
// Demo: http://teamoverpowered.com/forums/
// Code Discussion: http://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/
/* Last poster / freshness block for topics */
public function custom_last_poster_block_topics() {
echo BBP_Default::custom_get_last_poster_block_topics();
}
public function custom_get_last_poster_block_topics() {
$output .= "<div class='last-posted-topic-user'>";
$output .= bbp_get_reply_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => '14' ) );
$output .= "</div>";
$output .= "<div class='last-posted-topic-time'>";
$output .= bbp_get_topic_last_active_time( bbp_get_topic_last_active_id() );
$output .= "</div>";
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment