久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: 默認手機模板的論壇帖子列表如何去掉預覽 [打印本頁]

作者: 達雅    時間: 2024-8-13 10:17
標題: 默認手機模板的論壇帖子列表如何去掉預覽
默認手機模板帖子列表會自動顯示帖子一段內容,這個預覽功能在帖子屏蔽封禁的情況下還會正常顯示內容,想關掉后臺沒看到有功能關聯,想改模板查看字段沒改對,有改的朋友嗎,具體哪個字段刪掉可以去掉預覽

作者: 天外飄仙    時間: 2024-8-13 10:24
template\default\touch\search\thread_list.htm


    <a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra"><div class="threadlist_mes cl">{$threadlist_data[$thread['tid']]['message']}</div></a>
猜測 你說的是這個

作者: 達雅    時間: 2024-8-13 10:30
天外飄仙 發表于 2024-8-13 10:24
template\default\touch\search\thread_list.htm

應該不是,你這個應該是搜索列表,我是板塊的帖子列表不要顯示帖子內容
作者: 天外飄仙    時間: 2024-8-13 10:33
達雅 發表于 2024-8-13 10:30
應該不是,你這個應該是搜索列表,我是板塊的帖子列表不要顯示帖子內容 ...

template\default\touch\forum\forumdisplay.htm


<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra"><div class="threadlist_mes cl">{$threadlist_data[$thread['tid']]['message']}</div></a>


這個

作者: 達雅    時間: 2024-8-13 10:35
天外飄仙 發表于 2024-8-13 10:33
template\default\touch\forum\forumdisplay.htm

是這個,謝謝了,已經修改成功 感謝
作者: 達雅    時間: 2024-8-13 11:23
補充一下,還有個圖片代碼也需要刪除,否則文字內容不顯示了,圖片還會顯示,也是這個文件,找到下面代碼刪除
  1.                                 <a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
  2.                                         <div class="{if count($threadlist_data[$thread['tid']]['attachment']) == 1}threadlist_imgs1 {elseif count($threadlist_data[$thread['tid']]['attachment']) == 2} threadlist_imgs threadlist_imgs2{else} threadlist_imgs{/if} cl">
  3.                                                 <ul>
  4.                                                         <!--{loop $threadlist_data[$thread['tid']]['attachment'] $value}-->
  5.                                                         <!--{eval $attach_on++; if($attach_on > 9) break;}-->
  6.                                                         <li><!--{if count($threadlist_data[$thread['tid']]['attachment']) > 9 && $attach_on == 9}--><em>{echo count($threadlist_data[$thread['tid']]['attachment'])}{lang mobtu}</em><!--{/if}--><img src="$value" class="vm"></li>
  7.                                                         <!--{/loop}-->
  8.                                                 </ul>
  9.                                         </div>
  10.                                 </a>
復制代碼





歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0