Index: trunk/blocks/archives_block.php
===================================================================
--- trunk/blocks/archives_block.php	(revision 119)
+++ trunk/blocks/archives_block.php	(revision 120)
@@ -19,9 +19,9 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$type = empty( $options[1] ) ? false : true ;
-		$limit = empty( $options[2] ) ? '10' : $options[2] ;
-		$show_post_count = empty( $options[3] ) ? false : true ;		
-		$drop_down = empty( $options[4] ) ? false : true ;
-		$this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[3] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[1] );
+		$type = empty( $options[2] ) ? false : true ;
+		$limit = empty( $options[3] ) ? '10' : $options[3] ;
+		$show_post_count = empty( $options[4] ) ? false : true ;		
+		$drop_down = empty( $options[5] ) ? false : true ;
 		
 		require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');
@@ -32,7 +32,7 @@
 
 		$form .= "<br />" . yes_no_radio_option('options[1]', _MB_XPRESS_ARC_TYPE , $type,$a_month,$a_week);
-		$form .= "<br />" . _MB_XPRESS_COUNT . "  <input type='text' name='options[2]' value='" . $limit . "' />";
-		$form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count);
-		$form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down);
+		$form .= "<br />" . _MB_XPRESS_COUNT . "  <input type='text' name='options[3]' value='" . $limit . "' />";
+		$form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count);
+		$form .= "<br />" . yes_no_radio_option('options[5]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down);
 //	    $form .="<br /><input type='text' size='60' name='options[5]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />";
 	    
Index: trunk/blocks/authors_block.php
===================================================================
--- trunk/blocks/authors_block.php	(revision 119)
+++ trunk/blocks/authors_block.php	(revision 120)
@@ -19,17 +19,17 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$optioncount = empty( $options[1] ) ? false : true ;
-		$exclude_admin = empty( $options[2] ) ? false : true ;
-		$show_fullname = empty( $options[3] ) ? false : true ;
-		$hide_empty = empty( $options[4] ) ? false : true ;
-		$this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[5] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] );
+		$optioncount = empty( $options[2] ) ? false : true ;
+		$exclude_admin = empty( $options[3] ) ? false : true ;
+		$show_fullname = empty( $options[4] ) ? false : true ;
+		$hide_empty = empty( $options[5] ) ? false : true ;
 		
 		require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');
 			
 		$form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />";
-		$form .= yes_no_radio_option('options[1]', _MB_XPRESS_SHOW_NUM_OF_POST , $optioncount);
-		$form .= "<br />" . yes_no_radio_option('options[2]', _MB_XPRESS_EXCLUEDEADMIN , $exclude_admin);
-		$form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_SHOW_FULLNAME , $show_fullname);
-				$form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_HIDE_EMPTY , $hide_empty);
+		$form .= yes_no_radio_option('options[2]', _MB_XPRESS_SHOW_NUM_OF_POST , $optioncount);
+		$form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_EXCLUEDEADMIN , $exclude_admin);
+		$form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_FULLNAME , $show_fullname);
+				$form .= "<br />" . yes_no_radio_option('options[5]', _MB_XPRESS_HIDE_EMPTY , $hide_empty);
 //	    $form .="<br /><input type='text' size='60' name='options[4]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />";
 	    
Index: trunk/blocks/calender_block.php
===================================================================
--- trunk/blocks/calender_block.php	(revision 119)
+++ trunk/blocks/calender_block.php	(revision 120)
@@ -18,7 +18,7 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$sun_color = empty( $options[1] ) ? '#DB0000' : $options[1] ;
-		$sat_color = empty( $options[2] ) ? '#004D99' : $options[2] ;
-		$this_template = empty( $options[3] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[3] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[1] );
+		$sun_color = empty( $options[2] ) ? '#DB0000' : $options[2] ;
+		$sat_color = empty( $options[3] ) ? '#004D99' : $options[3] ;
 		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 		
Index: trunk/blocks/popular_posts_block.php
===================================================================
--- trunk/blocks/popular_posts_block.php	(revision 119)
+++ trunk/blocks/popular_posts_block.php	(revision 120)
@@ -17,9 +17,9 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
-		$show_month_range = empty( $options[2] ) ? '0' : $options[2] ;
-		$tag_select = $options[3] ;
-		$selected = array_slice($options, 4); // get allowed cats
-		$this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[5] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[1] );
+		$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+		$show_month_range = empty( $options[3] ) ? '0' : $options[3] ;
+		$tag_select = $options[4] ;
+		$selected = array_slice($options, 5); // get allowed cats
 		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 		
@@ -27,9 +27,9 @@
 
 		$form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n";
-		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />\n";
-		$form .= _MB_MONTH_RANGE .": <input type='text' name='options[2]' value='" . $show_month_range . "' /><br />\n";
+		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";
+		$form .= _MB_MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n";
 		$form .= "<br />\n";
 
-		$form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[3]' value='" . $tag_select . "' /><br />\n";	
+		$form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n";	
 	    $form .= _MB_XPRESS_CATS_SELECT ."<br />\n";
 	    $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Index: trunk/blocks/recent_comments_block.php
===================================================================
--- trunk/blocks/recent_comments_block.php	(revision 119)
+++ trunk/blocks/recent_comments_block.php	(revision 120)
@@ -18,8 +18,8 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
-		$disp_length = empty( $options[2] ) ? '30' : $options[2] ;
-	    $selected = array_slice($options,3); // get allowed cats
-		$this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[4] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[1] );
+		$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+		$disp_length = empty( $options[3] ) ? '30' : $options[3] ;
+	    $selected = array_slice($options,4); // get allowed cats
 		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 
@@ -27,6 +27,6 @@
 		
 		$form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />";
-		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />";
-		$form .= _MB_XPRESS_LENGTH .": <input type='text' name='options[2]' value='" . $disp_length . "' />";
+		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />";
+		$form .= _MB_XPRESS_LENGTH .": <input type='text' name='options[3]' value='" . $disp_length . "' />";
 	    $form .= "<br /><br />" . _MB_XPRESS_COM_TYPE ;
 	    $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Index: trunk/blocks/recent_posts_content_block.php
===================================================================
--- trunk/blocks/recent_posts_content_block.php	(revision 119)
+++ trunk/blocks/recent_posts_content_block.php	(revision 120)
@@ -18,10 +18,10 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$disp_count =  ($options[1])?intval($options[1]):10;
-		$except = empty( $options[2] ) ? false : true ;
-		$except_size =  ($options[3])?intval($options[3]):100;
-		$tag_select = $options[4] ;
-	    $selected = array_slice($options,5); // get allowed cats
-		$this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[5] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[1] );
+		$disp_count =  ($options[2])?intval($options[2]):10;
+		$except = empty( $options[3] ) ? false : true ;
+		$except_size =  ($options[4])?intval($options[4]):100;
+		$tag_select = $options[5] ;
+	    $selected = array_slice($options,6); // get allowed cats
 
 		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
@@ -30,10 +30,10 @@
 		
 		$form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n";
-		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />\n";
-		$form .= yes_no_radio_option('options[2]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n";
-		$form .= _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[3]' value='" . $except_size . "' /><br />\n";
+		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";
+		$form .= yes_no_radio_option('options[3]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n";
+		$form .= _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[4]' value='" . $except_size . "' /><br />\n";
 		
 		$form .= "<br />\n";
-		$form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n";
+		$form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[5]' value='" . $tag_select . "' /><br />\n";
 	    $form .= _MB_XPRESS_CATS_SELECT ."<br />\n";
 	    $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Index: trunk/blocks/recent_posts_list_block.php
===================================================================
--- trunk/blocks/recent_posts_list_block.php	(revision 119)
+++ trunk/blocks/recent_posts_list_block.php	(revision 120)
@@ -17,10 +17,10 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
-		$disp_red = empty( $options[2] ) ? '1' : $options[2] ;
-		$disp_green = empty( $options[3] ) ? '7' : $options[3] ;
-		$tag_select = $options[4] ;
-		$selected = array_slice($options,5); // get allowed cats
-		$this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[6] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] );
+		$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+		$disp_red = empty( $options[3] ) ? '1' : $options[3] ;
+		$disp_green = empty( $options[4] ) ? '7' : $options[4] ;
+		$tag_select = $options[5] ;
+		$selected = array_slice($options,6); // get allowed cats
 		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 		
@@ -28,10 +28,10 @@
 
 		$form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n";
-		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />\n";
-		$form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[2]' value='" . $disp_red . "' /><br />\n";
-		$form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_green . "' /><br />\n";
+		$form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";
+		$form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n";
+		$form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n";
 		
 	    $form .= "<br />\n";
-		$form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n";
+		$form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[5]' value='" . $tag_select . "' /><br />\n";
 	    $form .= _MB_XPRESS_CATS_SELECT ."<br />\n";
 	    $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Index: trunk/blocks/search_block.php
===================================================================
--- trunk/blocks/search_block.php	(revision 119)
+++ trunk/blocks/search_block.php	(revision 120)
@@ -18,5 +18,5 @@
 	{
 		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_search.html' : trim( $options[1] );
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_search_block.html' : trim( $options[1] );
 		$disp_count = empty( $options[2] ) ? '18' : $options[2] ;
 		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname ;
Index: trunk/wp-content/themes/xpress_default/blocks/archives_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/archives_block_theme.php	(revision 119)
+++ trunk/wp-content/themes/xpress_default/blocks/archives_block_theme.php	(revision 120)
@@ -3,9 +3,9 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$type = empty( $options[1] ) ? false : true ;
-	$limit = empty( $options[2] ) ? '10' : $options[2] ;
-	$show_post_count = empty( $options[3] ) ? false : true ;		
-	$drop_down = empty( $options[4] ) ? false : true ;	
-	$this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_archives_block.html' : trim( $options[3] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_archives_block.html' : trim( $options[1] );
+	$type = empty( $options[2] ) ? false : true ;
+	$limit = empty( $options[3] ) ? '10' : $options[3] ;
+	$show_post_count = empty( $options[4] ) ? false : true ;		
+	$drop_down = empty( $options[5] ) ? false : true ;	
 	
 	if ($type) {
Index: trunk/wp-content/themes/xpress_default/blocks/authors_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/authors_block_theme.php	(revision 119)
+++ trunk/wp-content/themes/xpress_default/blocks/authors_block_theme.php	(revision 120)
@@ -3,9 +3,9 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$optioncount = empty( $options[1] ) ? false : true ;
-	$exclude_admin = empty( $options[2] ) ? false : true ;
-	$show_fullname = empty( $options[3] ) ? false : true ;
-	$hide_empty = empty( $options[4] ) ? false : true ;		
-	$this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[5] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] );
+	$optioncount = empty( $options[2] ) ? false : true ;
+	$exclude_admin = empty( $options[3] ) ? false : true ;
+	$show_fullname = empty( $options[4] ) ? false : true ;
+	$hide_empty = empty( $options[5] ) ? false : true ;		
 	$mydirpath = get_xpress_dir_path();
 	
Index: trunk/wp-content/themes/xpress_default/blocks/calender_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/calender_block_theme.php	(revision 119)
+++ trunk/wp-content/themes/xpress_default/blocks/calender_block_theme.php	(revision 120)
@@ -3,7 +3,7 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$sun_color = empty( $options[1] ) ? '#DB0000' : $options[1] ;
-	$sat_color = empty( $options[2] ) ? '#004D99' : $options[2] ;
-	$this_template = empty( $options[3] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[3] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[1] );
+	$sun_color = empty( $options[2] ) ? '#DB0000' : $options[2] ;
+	$sat_color = empty( $options[3] ) ? '#004D99' : $options[3] ;
 //	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 	$mydirpath = get_xpress_dir_path();
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 119)
+++ trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php	(revision 120)
@@ -3,9 +3,9 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
-	$show_month_range = empty( $options[2] ) ? '0' : $options[2] ;
-	$tag_select = $options[3] ;
-	$selected = array_slice($options,4); // get allowed cats
-	$this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[5] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[1] );
+	$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+	$show_month_range = empty( $options[3] ) ? '0' : $options[3] ;
+	$tag_select = $options[4] ;
+	$selected = array_slice($options,5); // get allowed cats
 	$mydirpath = get_xpress_dir_path();
 	
Index: trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php	(revision 119)
+++ trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php	(revision 120)
@@ -5,8 +5,8 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
-	$disp_length = empty( $options[2] ) ? '30' : $options[2] ;
-	$selected = array_slice($options,3); // get allowed cats
-	$this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[4] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[1] );
+	$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+	$disp_length = empty( $options[3] ) ? '30' : $options[3] ;
+	$selected = array_slice($options,4); // get allowed cats
 //	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 	$mydirpath = get_xpress_dir_path();
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 119)
+++ trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php	(revision 120)
@@ -5,10 +5,10 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$disp_count =  ($options[1])?intval($options[1]):10;
-	$except = empty( $options[2] ) ? false : true ;
-	$except_size =  ($options[3])?intval($options[3]):100;
-	$tag_select = $options[4] ;
-    $selected = array_slice($options,5); // get allowed cats
-	$this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[6] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[1] );
+	$disp_count =  ($options[2])?intval($options[2]):10;
+	$except = empty( $options[3] ) ? false : true ;
+	$except_size =  ($options[4])?intval($options[4]):100;
+	$tag_select = $options[5] ;
+    $selected = array_slice($options,6); // get allowed cats
 //	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 	$mydirpath = get_xpress_dir_path();
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 119)
+++ trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php	(revision 120)
@@ -3,10 +3,10 @@
 {
 	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
-	$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
-	$disp_red = empty( $options[2] ) ? '1' : $options[2] ;
-	$disp_green = empty( $options[3] ) ? '7' : $options[3] ;
-	$tag_select = $options[4] ;
-	$selected = array_slice($options,5); // get allowed cats
-	$this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[6] );
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] );
+	$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+	$disp_red = empty( $options[3] ) ? '1' : $options[3] ;
+	$disp_green = empty( $options[4] ) ? '7' : $options[4] ;
+	$tag_select = $options[5] ;
+	$selected = array_slice($options,6); // get allowed cats
 //	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
 	$mydirpath = get_xpress_dir_path();
Index: trunk/xoops_version.php
===================================================================
--- trunk/xoops_version.php	(revision 119)
+++ trunk/xoops_version.php	(revision 120)
@@ -31,5 +31,5 @@
 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ;
 $modversion['description'] = constant( '_MI_XPRESS_DESC');
-$modversion['version'] = "0.08";
+$modversion['version'] = "0.09";
 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;";
 $modversion['author'] = "toemon (http://www.toemon.com)";
@@ -40,5 +40,5 @@
 
 // status
-$modversion['codename'] = "r111";
+$modversion['codename'] = "r120";
 
 // onInstall, onUpdate, onUninstall
@@ -108,5 +108,5 @@
 	'edit_func' 	=> "b_". $mydirname . "_comments_edit" ,
 	'template'		=> '' ,
-	'options'		=> $mydirname. '|10|30|0|' ,
+	'options'		=> $mydirname. '||10|30|0' ,
 	'can_clone'		=> true ,
 	'func_num'		=> $b_no,	
@@ -120,5 +120,5 @@
 	'edit_func' 	=> "b_". $mydirname . "_content_edit" ,
 	'template'		=> '' ,
-	'options'		=> $mydirname. '|10|0|100||0' ,
+	'options'		=> $mydirname. '||10|0|100||0' ,
 	'can_clone'		=> true ,
 	'func_num'		=> $b_no,
@@ -131,5 +131,5 @@
 	'show_func' 	=> "b_". $mydirname . "_posts_show" ,
 	'edit_func' 	=> "b_". $mydirname . "_posts_edit" ,
-	'options'		=> $mydirname. '|10|1|7||0' ,
+	'options'		=> $mydirname. '||10|1|7||0' ,
 	'can_clone'		=> true ,
 	'func_num'		=> $b_no,	
@@ -142,5 +142,5 @@
 	'show_func' 	=> "b_". $mydirname . "_calender_show" ,
 	'edit_func' 	=> "b_". $mydirname . "_calender_edit" ,
-	'options'		=> $mydirname. '|#DB0000|#004D99' ,
+	'options'		=> $mydirname. '||#DB0000|#004D99' ,
 	'can_clone'		=> false ,
 	'func_num'		=> $b_no,
@@ -153,5 +153,5 @@
 	'show_func' 	=> "b_". $mydirname . "_popular_show" ,
 	'edit_func' 	=> "b_". $mydirname . "_popular_edit" ,
-	'options'		=> $mydirname. '|10|0||0' ,
+	'options'		=> $mydirname. '||10|0||0' ,
 	'can_clone'		=> true ,
 	'func_num'		=> $b_no,	
@@ -164,5 +164,5 @@
 	'show_func' 	=> "b_". $mydirname . "_archives_show" ,
 	'edit_func' 	=> "b_". $mydirname . "_archives_edit" ,
-	'options'		=> $mydirname. '|1|10|1|0' ,
+	'options'		=> $mydirname. '||1|10|1|0' ,
 	'can_clone'		=> false ,
 	'func_num'		=> $b_no,	
@@ -175,5 +175,5 @@
 	'show_func' 	=> "b_". $mydirname . "_authors_show" ,
 	'edit_func' 	=> "b_". $mydirname . "_authors_edit" ,
-	'options'		=> $mydirname. '|0|1|0|1' ,
+	'options'		=> $mydirname. '||0|1|0|1' ,
 	'can_clone'		=> false ,
 	'func_num'		=> $b_no,	
