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

返回列表 發(fā)帖
查看: 629|回復(fù): 1

[求助] 關(guān)于帖子分類信息的問(wèn)題?

16

主題

38

回帖

65

積分

漸入佳境

貢獻(xiàn)
1 點(diǎn)
金幣
4 個(gè)
樓主
發(fā)表于 2024-10-31 14:21:45 | 只看樓主 |倒序?yàn)g覽 |閱讀模式


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


我知道答案 回答被采納將會(huì)獲得1 貢獻(xiàn) 已有1人回答

16

主題

38

回帖

65

積分

漸入佳境

貢獻(xiàn)
1 點(diǎn)
金幣
4 個(gè)
沙發(fā)
 樓主| 發(fā)表于 2024-10-31 14:28:02 | 只看Ta
通過(guò)多次摸索,終于找到了解決方法,供大家參考:


解決方法: \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ù)制代碼



本版積分規(guī)則

  • 關(guān)注公眾號(hào)
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機(jī)版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號(hào) |皖公網(wǎng)安備34010302002376號(hào) )|網(wǎng)站地圖|star

GMT+8, 2025-10-20 04:28 , Processed in 0.042694 second(s), 11 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表