97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

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

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

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


如何讓分類信息內(nèi)容一直顯示,意思就是訪客、設(shè)在購買主題的帖子 分類信息 內(nèi)容依然顯示。
我在模板里 viewthread_node_body.htm 找到了這段分類信息代碼,我把這段代碼移到的模板的頂端,可以實現(xiàn)了此功能,但是有個問題就是,所有回復的帖子也會顯示這個分類,但我這需要主題顯示即可。。這個不知如何解決?請高手指教下。。。
  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}-->
復制代碼



作者: 木易    時間: 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}-->
復制代碼








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