/** Last poster / freshness block for forums */ public function custom_last_poster_block( $subforum_id = "" ) { echo BBP_Default::custom_get_last_poster_block( $subforum_id = "" ); } public function custom_get_last_poster_block( $subforum_id = "" ) { if ( !empty( $subforum_id ) ) { // Main forum display with sub forums $output = "
"; $output .= "" . bbp_get_topic_last_reply_title( bbp_get_forum_last_active_id( $subforum_id ) ) . ""; $output .= "
"; $output .= "
by "; $author_id = bbp_get_forum_last_reply_author_id( $subforum_id ); $output .= "" . get_avatar( $author_id, '14' ) . " "; $output .= bbp_get_user_profile_link( $author_id ); $output .= "
"; $output .= "
"; $output .= bbp_get_forum_last_active_time( $subforum_id ); $output .= "
"; } else { // forum category display (no sub forums list) $output = "
"; $output .= "" . bbp_get_topic_last_reply_title( bbp_get_forum_last_active_id() ) . ""; $output .= "
"; $output .= "
by "; $output .= "" . get_avatar( bbp_get_forum_last_reply_author_id(), '14' ) . " "; $output .= bbp_get_user_profile_link( bbp_get_forum_last_reply_author_id() ); $output .= "
"; $output .= "
"; $output .= bbp_get_forum_last_active_time(); $output .= "
"; } return $output; }