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