男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

Discuz! 官方交流社區(qū)

標(biāo)題: 關(guān)于帖子分類信息的問題? [打印本頁]

作者: 木易    時(shí)間: 2024-10-31 14:21
標(biāo)題: 關(guān)于帖子分類信息的問題?


如何讓分類信息內(nèi)容一直顯示,意思就是訪客、設(shè)在購買主題的帖子 分類信息 內(nèi)容依然顯示。
我在模板里 viewthread_node_body.htm 找到了這段分類信息代碼,我把這段代碼移到的模板的頂端,可以實(shí)現(xiàn)了此功能,但是有個(gè)問題就是,所有回復(fù)的帖子也會(huì)顯示這個(gè)分類,但我這需要主題顯示即可。。這個(gè)不知如何解決?請高手指教下。。。
  1.   <!--{if $threadsort && $threadsortshow}-->
  2.                         <!--{if $threadsortshow['typetemplate']}-->
  3.                                 $threadsortshow[typetemplate]
  4.                         <!--{elseif $threadsortshow['optionlist']}-->
  5.                                 <div class="typeoption">
  6.                                         <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  7.                                                 {lang has_expired}
  8.                                         <!--{else}-->
  9.                                                 <table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" class="cgtl mbm">
  10.                                                         <caption>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</caption>
  11.                                                         <tbody>
  12.                                                                 <!--{loop $threadsortshow['optionlist'] $option}-->
  13.                                                                         <!--{if $option['type'] != 'info'}-->
  14.                                                                                 <tr>
  15.                                                                                         <th>$option[title]:</th>
  16.                                                                                         <td><!--{if $option['value'] !== ''}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--></td>
  17.                                                                                 </tr>
  18.                                                                         <!--{/if}-->
  19.                                                                 <!--{/loop}-->
  20.                                                         </tbody>
  21.                                                 </table>
  22.                                         <!--{/if}-->
  23.                                 </div>
  24.                         <!--{/if}-->
  25.                 <!--{/if}-->
復(fù)制代碼



作者: 木易    時(shí)間: 2024-10-31 14:28
通過多次摸索,終于找到了解決方法,供大家參考:


解決方法: \template\default\forum\viewthread_node_body.htm
29-53行代碼刪除,將以下代碼粘貼到頂部第二行 <div class="pcb"> 代碼下即可。
  1. <!--{if $post['first']}-->
  2.                 <!--{if $threadsort && $threadsortshow}-->
  3.                         <!--{if $threadsortshow['typetemplate']}-->
  4.                                 $threadsortshow[typetemplate]
  5.                         <!--{elseif $threadsortshow['optionlist']}-->
  6.                                 <div class="typeoption">
  7.                                         <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  8.                                                 {lang has_expired}
  9.                                         <!--{else}-->
  10.                                                 <table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" class="cgtl mbm">
  11.                                                         <caption>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</caption>
  12.                                                         <tbody>
  13.                                                                 <!--{loop $threadsortshow['optionlist'] $option}-->
  14.                                                                         <!--{if $option['type'] != 'info'}-->
  15.                                                                                 <tr>
  16.                                                                                         <th>$option[title]:</th>
  17.                                                                                         <td><!--{if $option['value'] !== ''}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--></td>
  18.                                                                                 </tr>
  19.                                                                         <!--{/if}-->
  20.                                                                 <!--{/loop}-->
  21.                                                         </tbody>
  22.                                                 </table>
  23.                                         <!--{/if}-->
  24.                                 </div>
  25.                         <!--{/if}-->
  26.                 <!--{/if}-->
  27. <!--{/if}-->
復(fù)制代碼








歡迎光臨 Discuz! 官方交流社區(qū) (http://m.sdtechgong.com.cn/) Powered by Discuz! X5.0