Index: temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_viewtopic_flat.html
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_viewtopic_flat.html	(revision 486)
+++ temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_viewtopic_flat.html	(revision 491)
@@ -2,5 +2,5 @@
 <table border="0" width="100%" cellpadding="5" align="center">
 	<tr>
-		<td align="left"><a href='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>'><{$forum_name}></a>&nbsp;>&nbsp;<b><{$topic_title}></b></td>
+		<td align="left"><a href="<{$xoops_url}>/modules/newbb/index.php?cat=<{$arrCat.cat_id}>"><{$arrCat.cat_title}></a>&nbsp;>&nbsp;<a href='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>'><{$forum_name}></a>&nbsp;>&nbsp;<b><{$topic_title}></b></td>
 		<td align="right"></td>
 	</tr>
Index: temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_viewtopic_thread.html
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_viewtopic_thread.html	(revision 490)
+++ temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_viewtopic_thread.html	(revision 491)
@@ -2,5 +2,5 @@
 <table border="0" width="100%" cellpadding="5" align="center">
 	<tr>
-		<td align="left"><a href='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>'><{$forum_name}></a>&nbsp;>&nbsp;<b><{$topic_title}></b></td>
+		<td align="left"><a href="<{$xoops_url}>/modules/newbb/index.php?cat=<{$arrCat.cat_id}>"><{$arrCat.cat_title}></a>&nbsp;>&nbsp;<a href='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>'><{$forum_name}></a>&nbsp;>&nbsp;<b><{$topic_title}></b></td>
 		<td align="right"></td>
 	</tr>
Index: temp/test-xoops.ec-cube.net/html/modules/newbb/viewtopic.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/newbb/viewtopic.php	(revision 411)
+++ temp/test-xoops.ec-cube.net/html/modules/newbb/viewtopic.php	(revision 491)
@@ -348,4 +348,13 @@
     }
 }
+// ¥«¥Æ¥´¥êÌ¾¼èÆÀ
+$sql = "SELECT c.cat_id, c.cat_title FROM ".$xoopsDB->prefix("bb_categories")." c, ".$xoopsDB->prefix("bb_forums")." f WHERE c.cat_id = f.cat_id AND forum_id = $forum";
+
+if ( !$result = $xoopsDB->query($sql) ) {
+	//redirect_header('index.php',2,_MD_ERROROCCURED);
+	//exit();
+}
+$arrCat = $xoopsDB->fetchArray($result);
+$xoopsTpl->assign('arrCat', $arrCat);
 
 // ÂÐ±þ¾õ¶·
