PEAK XOOPS - d3forum(0.78a)のテンプレートファイル main_listtopics.html のバグレポートです in englishin japanese

d3forum(0.78a)のテンプレートファイル main_listtopics.html のバグレポートです

List posts in the topic

none d3forum(0.78a)のテンプレートファイル main_listtopics.html のバグレポートです

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/5 23:42 | Last modified
enhiro  一等兵   Posts: 13
こんにちは、GIJOE さん

d3forum のテンプレートファイル main_listtopics.html について
バグレポートです。

わたくし今度 XCL で構築したサイトを公開する予定なのですが、
d3forum の投票機能を利用する予定がないため、
投票機能を利用しない設定にしたところ、
あるフォーラムを選択すると表示される
トピック一覧のテーブルの項目行で
「トピック開始」と表示されるべきところが
「投票数」と表示されました。

「おかしいぞっ」と思い、テンプレート main_listtopics.html を
見てみると、91 行目あたりで $mod_config.use_vote の値で
処理を分岐している部分にバグらしきものがありました。

xoops_trust_path/modules/d3forum/templates/main_listtopics.html (91行目あたり)
<tr class="head">
	<th colspan="2" abbr="<{$smarty.const._MD_D3FORUM_TOPIC}>"><{$topic_hits|string_format:$smarty.const._MD_D3FORUM_FMT_TOPICHITS}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_REPLIES}>"><{$smarty.const._MD_D3FORUM_REPLIES}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_VIEWS}>"><{$smarty.const._MD_D3FORUM_VIEWS}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_VOTECOUNT}>"><{$smarty.const._MD_D3FORUM_VOTECOUNT}></th>
	<{if $mod_config.use_vote}> <{* <<=====【enhiro のメモ】ここは 1 つ上にあるべきだと思います。 *}>
	<th abbr="<{$smarty.const._MD_D3FORUM_VOTEPOINTAVG}>"><{$smarty.const._MD_D3FORUM_VOTEPOINTAVG}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_FIRSTPOST}>"><{$smarty.const._MD_D3FORUM_FIRSTPOST}></th>
	<{/if}> <{* <<=====【enhiro のメモ】ここも 1 つ上にあるべきだと思います。 *}>
	<th abbr="<{$smarty.const._MD_D3FORUM_LASTPOST}>"><{$smarty.const._MD_D3FORUM_LASTPOST}></th>
</tr>

下記は、わたしのローカルで修正したものの diff の内容です。
ご参照ください(単純なので不要かな?と思いましたが一応)。

diff -ru org/xoops_trust_path/modules/d3forum/templates/main_listtopics.html new/xoops_trust_path/modules/d3forum/templates/main_listtopics.html
--- org/xoops_trust_path/modules/d3forum/templates/main_listtopics.html	2007-09-26 17:58:25.000000000 +0900
+++ new/xoops_trust_path/modules/d3forum/templates/main_listtopics.html	2007-10-05 23:10:28.000000000 +0900
@@ -87,11 +87,11 @@
 	<th colspan="2" abbr="<{$smarty.const._MD_D3FORUM_TOPIC}>"><{$topic_hits|string_format:$smarty.const._MD_D3FORUM_FMT_TOPICHITS}></th>
 	<th abbr="<{$smarty.const._MD_D3FORUM_REPLIES}>"><{$smarty.const._MD_D3FORUM_REPLIES}></th>
 	<th abbr="<{$smarty.const._MD_D3FORUM_VIEWS}>"><{$smarty.const._MD_D3FORUM_VIEWS}></th>
-	<th abbr="<{$smarty.const._MD_D3FORUM_VOTECOUNT}>"><{$smarty.const._MD_D3FORUM_VOTECOUNT}></th>
 	<{if $mod_config.use_vote}>
+	<th abbr="<{$smarty.const._MD_D3FORUM_VOTECOUNT}>"><{$smarty.const._MD_D3FORUM_VOTECOUNT}></th>
 	<th abbr="<{$smarty.const._MD_D3FORUM_VOTEPOINTAVG}>"><{$smarty.const._MD_D3FORUM_VOTEPOINTAVG}></th>
-	<th abbr="<{$smarty.const._MD_D3FORUM_FIRSTPOST}>"><{$smarty.const._MD_D3FORUM_FIRSTPOST}></th>
 	<{/if}>
+	<th abbr="<{$smarty.const._MD_D3FORUM_FIRSTPOST}>"><{$smarty.const._MD_D3FORUM_FIRSTPOST}></th>
 	<th abbr="<{$smarty.const._MD_D3FORUM_LASTPOST}>"><{$smarty.const._MD_D3FORUM_LASTPOST}></th>
 </tr>
 </thead>

以上です。
※私の環境でテンプレートを修正しちゃえばすむ話なのですが...連絡しました
Votes:1 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!