Index: functions.bb-admin.php
===================================================================
--- functions.bb-admin.php	(revision 2398)
+++ functions.bb-admin.php	(working copy)
@@ -411,14 +411,18 @@
 	return $ids;
 }
 
-function bb_user_row( $user, $role = '', $email = false ) {
+function bb_user_row( $user, $role = '', $email = false, $delete = false ) {
 	$actions = "<a href='" . esc_attr( get_user_profile_link( $user->ID ) ) . "'>" . __('View') . "</a>";
 	$title = '';
 	if ( bb_current_user_can( 'edit_user', $user_id ) ) {
-		$actions .= " | <a href='" . esc_attr( get_profile_tab_link( $user->ID, 'edit' ) ) . "'>" . __('Edit') . "</a>";
+		$actions .= " | <a href='" . esc_attr( get_profile_tab_link( $user->ID, 'edit' ) ) . "'>" . __( 'Edit' ) . "</a>";
+		$actions .= bb_get_user_delete_link( array( 'id' => $user->ID, 'before' => ' | ', 'after' => '', 'delete_text' => __( 'Delete' ) ) );
 		$title = " title='" . esc_attr( sprintf( __( 'User ID: %d' ), $user->ID ) ) . "'";
 	}
 	$r  = "\t<tr id='user-$user->ID'" . get_alt_class("user-$role") . ">\n";
+	if ( $delete ) {
+		$r .= "\t\t<td class=\"check-column\"><input type=\"checkbox\" name=\"user[]\" value=\"" . $user->ID . "\" /></td> \n";
+	}
 	$r .= "\t\t<td class=\"user\">" . bb_get_avatar( $user->ID, 32 ) . "<span class=\"row-title\"><a href='" . get_user_profile_link( $user->ID ) . "'" . $title . ">" . get_user_name( $user->ID ) . "</a></span><div><span class=\"row-actions\">$actions</span>&nbsp;</div></td>\n";
 	$r .= "\t\t<td><a href='" . get_user_profile_link( $user->ID ) . "'>" . get_user_display_name( $user->ID ) . "</a></td>\n";
 	if ( $email ) {
@@ -563,7 +567,7 @@
 		return false;
 	}
 
-	function display( $show_search = true, $show_email = false ) {
+	function display( $show_search = true, $show_email = false, $show_delete = false ) {
 		global $wp_roles;
 
 		$r = '';
@@ -627,6 +631,31 @@
 			$r .= "</fieldset>\n";
 			$r .= "</form>\n\n";
 		}
+		
+		if( $show_delete ) {
+			$bulk_actions = array(
+				'delete' => __( 'Delete' ),
+			);
+		}else{
+			$bulk_actions = array(); //for plugins
+		}
+		
+		do_action_ref_array( 'bulk_user_actions', array( &$bulk_actions, &$bb_user_search ) );
+		
+		$r .= "<div class='clear'></div>\n\n";
+		$r .= "<form class='table-form bulk-form' method='post' action=''>\n";
+		$r .= "\t<fieldset>\n";
+		$r .= "\t\t<select name='action'>\n";
+		$r .= "\t\t\t<option>" . __( 'Bulk Actions' ) . "</option>\n";
+		
+		foreach ( $bulk_actions as $value => $label ) :
+			$r .= "\t\t\t<option value='" . esc_attr( $value ) . "'>" . esc_html( $label ) . "</option>\n";
+		endforeach;
+		
+		$r .= "\t\t</select>\n";
+		$r .= "\t\t<input type='submit' value='" . esc_attr__( 'Apply' ) . "' class='button submit-input' />\n";
+		$r .= "\t\t" . bb_nonce_field( 'user-bulk', '_wpnonce', true, false ) . "\n";
+		$r .= "\t</fieldset>\n";
 
 		if ( $this->get_results() ) {
 			if ( $this->results_are_paged() )
@@ -641,6 +670,9 @@
 				$r .= "<table class='widefat'>\n";
 				$r .= "<thead>\n";
 				$r .= "\t<tr>\n";
+				if ( $show_delete ) {
+					$r .= "\t\t<th scope='col' class='check-column'><input type='checkbox' /></th>\n";
+				}
 				if ( $show_email ) {
 					$r .= "\t\t<th style='width:30%;'>" . __('Username') . "</th>\n";
 					$r .= "\t\t<th style='width:20%;'>" . __('Name') . "</th>\n";
@@ -655,6 +687,9 @@
 				$r .= "</thead>\n\n";
 				$r .= "<tfoot>\n";
 				$r .= "\t<tr>\n";
+				if ( $show_delete ) {
+					$r .= "\t\t<th scope='col' class='check-column'><input type='checkbox' /></th>\n";
+				}
 				if ( $show_email ) {
 					$r .= "\t\t<th style='width:30%;'>" . __('Username') . "</th>\n";
 					$r .= "\t\t<th style='width:20%;'>" . __('Name') . "</th>\n";
@@ -670,9 +705,10 @@
 
 				$r .= "<tbody id='role-$role'>\n";
 				foreach ( (array) $this->get_results() as $user_object )
-					$r .= bb_user_row($user_object, $role, $show_email);
+					$r .= bb_user_row($user_object, $role, $show_email, $show_delete);
 				$r .= "</tbody>\n";
 				$r .= "</table>\n\n";
+				$r .= "</form>\n\n";
 			//}
 
 			if ( $this->results_are_paged() )

