$css\n";
}
function ashfame_recent_bbpress_replies($limit='5',$heading_opening_tag="
",$heading_closing_tag="
") // You can call the following function anywhere in your template
{
if (!is_numeric($limit)) // fix for 'post_post_form' action
$limit = 5;
global $bbdb, $bb_table_prefix, $query_recent_replies,$css_post_id_prefix;
$where = " WHERE post_status = 0 AND post_position <> 1 ";
$query_recent_replies = "SELECT * from ".$bb_table_prefix."topics JOIN ".$bb_table_prefix."posts ON ".$bb_table_prefix."topics.topic_id = ".$bb_table_prefix."posts.topic_id ".$where." ORDER BY post_time DESC LIMIT ".$limit;
$recent_replies = $bbdb->get_results($query_recent_replies);
/* echo $query_recent_replies; */
if (empty($recent_replies))
echo "err";
echo "\n\n";
echo $heading_opening_tag."Recent Replies".$heading_closing_tag;
echo "\n\n\n\n";
}
?>