Index: trunk/include/xpress_render.php
===================================================================
--- trunk/include/xpress_render.php	(revision 163)
+++ trunk/include/xpress_render.php	(revision 164)
@@ -104,5 +104,13 @@
 	$xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents));
 	$xoopsTpl->assign('xoops_pagetitle', $page_title);
-	$xoopsTpl->assign('xpress_body_contents', get_body($contents));
+	$xpress_data['body_contents'] = get_body($contents);
+	// used $GLOBALS. becose xpress_left_arrow_post_link() and xpress_right_arrow_post_link() is other loop in this position
+	$xpress_data['left_post_link'] = $GLOBALS['left_arrow_post_link'];
+	$xpress_data['right_post_link'] = $GLOBALS['right_arrow_post_link'];
+	$xpress_data['left_posts_link'] =  str_replace('&laquo;','',xpress_left_arrow_posts_link(false));
+	$xpress_data['right_posts_link'] = str_replace('&raquo;','',xpress_right_arrow_posts_link(false));
+	$xpress_data['now_user_level'] = xpress_now_user_level(false);
+
+	$xoopsTpl->assign('xpress', $xpress_data);
 	$templates_file = 'db:'.$mydirname. '_index.html';
 	echo $xoopsTpl->fetch( $templates_file ) ;
Index: trunk/templates/source/index.html
===================================================================
--- trunk/templates/source/index.html	(revision 163)
+++ trunk/templates/source/index.html	(revision 164)
@@ -1,2 +1,2 @@
-<{$xpress_body_contents}>
+<{$xpress.body_contents}>
 <{include file='db:system_notification_select.html'}>
Index: trunk/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 163)
+++ trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 164)
@@ -28,5 +28,15 @@
 		
 }
-	
+
+function xpress_now_user_level($show=true ) {
+	global $current_user;
+	$output = @$current_user->user_level;
+	if (empty($show))
+		return $output;
+	else
+		echo $output;		
+}
+
+
 function xpress_list_pings($trackback, $args, $depth) {
        $GLOBALS['comment'] = $trackback;
@@ -83,4 +93,9 @@
 		$ret = ob_get_contents();
 		ob_end_clean();
+		ob_start();
+			previous_post_link('%link',$link_title);
+			$GLOBALS['left_arrow_post_link'] = ob_get_contents();
+		ob_end_clean();
+
 	} else {
 		$link_title = $xpress_config->newer_post_link_text;
@@ -89,7 +104,12 @@
 			next_post_link('&laquo; %link');
 		else
-			next_post_link('&laquo; %link',$link_title);
-		$ret = ob_get_contents();
-		ob_end_clean();
+		$GLOBALS['left_arrow_post_link'] = 
+		$ret = ob_get_contents();
+		ob_end_clean();
+		ob_start();
+			next_post_link('%link',$link_title);
+			$GLOBALS['left_arrow_post_link'] = ob_get_contents();
+		ob_end_clean();
+
 	}
 	
@@ -134,4 +154,9 @@
 		$ret = ob_get_contents();
 		ob_end_clean();
+		ob_start();
+			next_post_link('%link',$link_title);
+			$GLOBALS['right_arrow_post_link'] = ob_get_contents();
+		ob_end_clean();
+
 	} else {
 		$link_title = $xpress_config->old_post_link_text;
@@ -143,4 +168,9 @@
 		$ret = ob_get_contents();
 		ob_end_clean();
+		ob_start();
+			previous_post_link('%link',$link_title);
+			$GLOBALS['right_arrow_post_link'] = ob_get_contents();
+		ob_end_clean();
+
 	}
 	
Index: trunk/xoops_version.php
===================================================================
--- trunk/xoops_version.php	(revision 163)
+++ trunk/xoops_version.php	(revision 164)
@@ -31,5 +31,5 @@
 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ;
 $modversion['description'] = constant( '_MI_XPRESS_DESC');
-$modversion['version'] = "0.26";
+$modversion['version'] = "0.27";
 $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'] = "r163";
+$modversion['codename'] = "r164";
 
 // onInstall, onUpdate, onUninstall
