Index: trunk/blocks/recent_comments_block.php
===================================================================
--- trunk/blocks/recent_comments_block.php	(revision 109)
+++ 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;
