'.bb_get_option('name').' » Leaderboard

Leaderboard

'; if (empty($leaders)) { $output.="

Sorry, there are no users for this selection, please try another.


"; } else { $output.=" "; foreach ($leaders as $rank=>$leader) { $user = bb_get_user( $leader->ID ); $r=""; $r .= ""; $r .= ""; $r .= ""; $r .= ""; $r .= ""; $r .= ""; $r .= ""; $r .= ""; $r .= ""; $output.=$r; } $output.="
".__('Rank')." ". __('User')." ". __('Total')." ". __('Posts')." ". __('Topics')." ". __('Comments')." ". __('Member Since')."
".($rank+1+(($page-1)*$leaderboard['per_page']))."" . bb_get_avatar( $user->ID, 32 ) . " " . get_user_name( $user->ID ) . "$leader->total_count$leader->post_count$leader->topic_count$leader->comment_count" . bb_since( $user->user_registered ) . "
"; } // end empty $leaders $output.='
'; // $output.=" updated ".bb_since($filemtime)." ago"; echo $output; leaderboard_cache($template,$days,$forums,$output,$page); function leaderboard_forum_list( $args = '' ) { global $forum_id, $forum; $old_global = $forum; $defaults = array( 'size'=>1, 'callback' => false, 'callback_args' => false, name=> 'forums', 'id' => 'leaderboard_forums', 'tab' => 5, 'hierarchical' => 1, 'depth' => 0, 'child_of' => 0, 'disable_categories' => 1 , 'onchange'=>'this.form.submit();' ); if ( $args && is_string($args) && false === strpos($args, '=') ) {$args = array( 'callback' => $args );} if ( 1 < func_num_args() ) {$args['callback_args'] = func_get_arg(1);} $args = wp_parse_args( $args, $defaults ); extract($args, EXTR_SKIP); if ( !bb_forums( $args ) ) {return;} $forums=isset($_REQUEST['forums']) ? $_REQUEST['forums'] : 0; if (is_array($forums)) {foreach ($forums as $key=>$value) {$forums[$key]=intval($value);}} else {$forums=intval($forums);} $selected=array_flip((array) $forums); $option_selected = isset($selected[0]) ? ' selected="selected"' : ''; $r = '' . "\n"; return $r; } ?>