返信する: 研究室コメント
対象モジュール | なーお'n研究室 |
件名 | d3forum側で統合コメントのツリー全表示 |
要旨 | 本情報はいささか古く、現在ではハック無しで組み込まれた、こちらのXoopsX版をどうぞご使用ください。 ページ内コンテンツ コメント統合で d3forumのツリー全表示 背景 ... |
- Re: d3forum側で統合コメントのツリー全表示
- 投稿者: なーお 投稿日時: 2009/3/22 18:21
nonn50さん
はい、そこはですね、 元々のテンプレートの中での並べ替え編集で行けます。
「d3forum_main_viewpost.html」
とりあえず、私のサイトのをそのまま貼っておきますんで、あとはご自由に編集してくださいね。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<div class="d3f_link"> <{$posts|@count|string_format:$smarty.const._MD_D3FORUM_FMT_POSTDISPLAYSINFO}> <a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>&external_link_id=<{$topic.external_link_id|escape:"url"}>"><{$smarty.const._MD_D3FORUM_LINK_LISTALLCOMMENTS}></a></div> <!-- start post tree --> <h2 class="head d3f_tree d3f_head"><{$smarty.const._MD_D3FORUM_POSTSTREE}></h2> <{foreach from=$posts item=eachpost}> <{if $eachpost.id == $post.id}> <{$eachpost.ul_in|replace:"<ul>":"<ul class='d3f_eachbranch'>\n\t"|replace:"<li>":"<li class='d3f_eachbranchitem d3f_currenttopic'><span style='padding-left:`$eachpost.depth_in_tree`0px;'>"}> <{else}> <{$eachpost.ul_in|replace:"<ul>":"<ul class='d3f_eachbranch'>\n\t"|replace:"<li>":"<li class='d3f_eachbranchitem'><span style='padding-left:`$eachpost.depth_in_tree`0px;'>"}> <{/if}> <a href="<{$mod_url}>/index.php?post_id=<{$eachpost.id}>" id="post_path<{$eachpost.unique_path}>" name="post_path<{$eachpost.unique_path}>"><img src="<{$mod_imageurl}>/posticon<{$eachpost.icon}>.gif" alt="<{$icon_meanings[$eachpost.icon]}>" /> <{$eachpost.subject}></a> (<{$eachpost.poster_uname}>, <{$eachpost.post_time_formatted}>) <{if $forum.isadminormod}><a href="<{$mod_url}>/index.php?page=cutpasteposts&post_id=<{$eachpost.id}>"><img src="<{$mod_imageurl}>/adminicon_cutpaste.gif" alt="<{$smarty.const._MD_D3FORUM_CUTPASTEPOSTS}>" /></a><{/if}></span> <{$eachpost.ul_out}> <{/foreach}> <!-- end topic tree --> <p class="d3f_topicinfo"><a href="<{$mod_url}>/index.php?topic_id=<{$topic.id}>"><{$smarty.const._MD_D3FORUM_LINK_LISTPOSTS}></a></p> <div class="d3f_wrap"> <{include file="db:`$mydirname`_inc_eachpost.html" caller="viewpost" inner_link_format="`$mod_url`/index.php?post_id=%s"}> </div> <!-- quick reply form --> <{if $post.can_reply}> <{include file="db:`$mydirname`_inc_post_form_quick.html" uname=$xoops_uname h2_title=$smarty.const._MD_D3FORUM_REPLYTHISPOST quick_form_mode="reply" subject_raw=$post.subject_raw}> <{/if}> <!-- forum jump --> <form name="forum_jump_box" action="<{$mod_url}>/index.php" method="get" style="clear:both;"> <p> <select name="forum_id"><{$forum_jumpbox_options}></select> <input type="submit" value="<{$smarty.const._MD_D3FORUM_BTN_JUMPTOFORUM}>" /> <a href="<{$mod_url}>/index.php?page=search"><{$smarty.const._MD_D3FORUM_LINK_ADVSEARCH}></a> </p> </form> <hr class="notification" /> <{include file='db:system_notification_select.html'}> <!-- end module contents -->