Index: /trunk/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- /trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 156)
+++ /trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 157)
@@ -7,4 +7,18 @@
   		$user_info = get_userdata($uid);
   		$output = $user_info->display_name;
+  	}
+	if (empty($show))
+		return $output;
+	else
+		echo $output;
+		
+}
+function xpress_selected_author_id($show=true ) {
+	$output = '';
+  	$author_cookie = get_xpress_dir_name() . "_select_author" ;
+  	if (!empty($_COOKIE[$author_cookie])){
+  		$output = intval($_COOKIE[$author_cookie]);
+  	} else {
+  		$output = '';
   	}
 	if (empty($show))
Index: /trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php
===================================================================
--- /trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php	(revision 156)
+++ /trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php	(revision 157)
@@ -23,4 +23,6 @@
 	$block = array();
 	$item_no = 0;	
+	
+	$selected_author_id = xpress_selected_author_id(false);	
 
 	global $wpdb,$wp_query;
@@ -51,4 +53,7 @@
  		
 	 	$where = " WHERE ($post_tb.post_type = 'post') AND ($post_tb.post_status = 'publish')";
+		if (!empty($selected_author_id)){
+			$where  .= " AND $post_tb.post_author = $selected_author_id ";
+		}
 
 	 	if ($cat_select) {
@@ -73,4 +78,8 @@
 	 		$where .= " AND ($post2cat_tb.category_id IN ($cat_id))";
 		}
+		if (!empty($selected_author_id)){
+			$where  .= " AND $post_tb.post_author = $selected_author_id ";
+		}
+
 	}
 	if ($show_month_range > 0) {
Index: /trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
===================================================================
--- /trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php	(revision 156)
+++ /trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php	(revision 157)
@@ -20,4 +20,10 @@
 	if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&";
 	
+	$selected_author_id = xpress_selected_author_id(false);	
+	if (!empty($selected_author_id)){
+		$author_where ="author=$selected_author_id&";
+	} else {
+		$author_where = '';
+	}
 	global $wpdb,$wp_query;
 	$block = array();
@@ -26,9 +32,9 @@
 		$wp_query->in_the_loop = true;		//for use the_tags() in multi lopp 
 		if (array_search(0,$selected)===0) {
-			$r = new WP_Query($tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
+			$r = new WP_Query($author_where . $tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
 
 		} else {
 			$cat_id = implode(',',$selected);
-			$r = new WP_Query($tag_where . "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
+			$r = new WP_Query($author_where . $tag_where . "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
 		}
 		while($r->have_posts()){			
Index: /trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php
===================================================================
--- /trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php	(revision 156)
+++ /trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php	(revision 157)
@@ -17,4 +17,11 @@
 	if (empty($time_format)) $time_format = get_settings('time_format');
 	if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&";
+
+	$selected_author_id = xpress_selected_author_id(false);	
+	if (!empty($selected_author_id)){
+		$author_where ="author=$selected_author_id&";
+	} else {
+		$author_where = '';
+	}
 	
 	global $wpdb,$wp_query;
@@ -24,9 +31,9 @@
 		$wp_query->in_the_loop = true;		//for use the_tags() in multi lopp 
 		if (array_search(0,$selected)===0) {
-			$r = new WP_Query($tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
+			$r = new WP_Query($author_where . $tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
 
 		} else {
 			$cat_id = implode(',',$selected);
-			$r = new WP_Query($tag_where . "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
+			$r = new WP_Query($author_where . $tag_where . "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");
 		}
 		while($r->have_posts()){			
