Index: /temp/test-xoops.ec-cube.net/html/footer.php
===================================================================
--- /temp/test-xoops.ec-cube.net/html/footer.php	(revision 1252)
+++ /temp/test-xoops.ec-cube.net/html/footer.php	(revision 1253)
@@ -47,5 +47,7 @@
         // RMV-NOTIFY
         include_once XOOPS_ROOT_PATH . '/include/notification_select.php';
-        if (isset($xoopsOption['template_main'])) {
+		
+		if(isset($xoopsOption['template_main_path'])){
+			$xoopsOption['template_main'] = $xoopsOption['template_main_path'];
             if (isset($xoopsCachedTemplateId)) {
                 $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'], $xoopsCachedTemplateId));
@@ -53,13 +55,22 @@
                 $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main']));
             }
-        } else {
-            if (isset($xoopsCachedTemplate)) {
-                $xoopsTpl->assign('dummy_content', ob_get_contents());
-                $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch($xoopsCachedTemplate, $xoopsCachedTemplateId));
-            } else {
-                $xoopsTpl->assign('xoops_contents', ob_get_contents());
-            }
-            ob_end_clean();
-        }
+		}else{
+	        if (isset($xoopsOption['template_main'])) {
+	            if (isset($xoopsCachedTemplateId)) {
+	                $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'], $xoopsCachedTemplateId));
+	            } else {
+	                $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main']));
+	            }
+	        } else {
+	            if (isset($xoopsCachedTemplate)) {
+	                $xoopsTpl->assign('dummy_content', ob_get_contents());
+	                $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch($xoopsCachedTemplate, $xoopsCachedTemplateId));
+	            } else {
+	                $xoopsTpl->assign('xoops_contents', ob_get_contents());
+	            }
+	            ob_end_clean();
+	        }
+		}
+		
         if (!headers_sent()) {
             header('Content-Type:text/html; charset='._CHARSET);
Index: /temp/test-xoops.ec-cube.net/html/modules/newbb/response.php
===================================================================
--- /temp/test-xoops.ec-cube.net/html/modules/newbb/response.php	(revision 1246)
+++ /temp/test-xoops.ec-cube.net/html/modules/newbb/response.php	(revision 1253)
@@ -48,5 +48,5 @@
 // this page uses smarty template
 // this must be set before including main header.php
-$xoopsOption['template_main'] = 'newbb_response.html';
+$xoopsOption['template_main_path'] = 'newbb_response.html';
 include XOOPS_ROOT_PATH."/header.php";
 $can_post = 0;
