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

Discuz! 官方交流社區

標題: 主題列表頁想增加個發帖時間,有沒有大佬指點一下! [打印本頁]

作者: 達達崩吧    時間: 2022-11-8 19:12
標題: 主題列表頁想增加個發帖時間,有沒有大佬指點一下!
如下圖,想把圖一默認改成圖二那種。forumdisplay_list文件也找到了,就是調用這里遇到點問題,求大佬告知一下。謝謝!

[code]      <a id="filter_special" href="javascript:;" class="showmenu xi2{if $_GET['specialtype']} xw1{/if}"><!--{if $_GET['specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_GET['specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_GET['specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_GET['specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_GET['specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}--></a> (, 下載次數: 5)
(, 下載次數: 6)

作者: 達達崩吧    時間: 2022-11-8 19:12
  1.                                                 <a id="filter_special" href="javascript:;" class="showmenu xi2{if $_GET['specialtype']} xw1{/if}" onclick="showMenu(this.id)"><!--{if $_GET['specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_GET['specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_GET['specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_GET['specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_GET['specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}--></a>&nbsp;                                               
  2.                                                 <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'lastpost'} xw1{/if}">{lang latest}</a>&nbsp;
  3.                                                 <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats$forumdisplayadd[heat]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'heat'} xw1{/if}">{lang order_heats}</a>&nbsp;
  4.                                                 <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=hot" class="xi2{if $_GET['filter'] == 'hot'} xw1{/if}">{lang hot_thread}</a>&nbsp;
  5.                                                 <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'digest'} xw1{/if}">{lang digest_posts}</a>&nbsp;
  6.                                                 <a id="filter_dateline" href="javascript:;" class="showmenu xi2{if $_GET['dateline']} xw1{/if}" onclick="showMenu(this.id)">{lang more}</a>&nbsp;
  7.                                                 <!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && !$_GET['filter']}-->
  8.                                                         <a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh"></a>
復制代碼

作者: 緣_Dz!    時間: 2022-11-9 18:33
更多-- 里面就有按發帖時間的
作者: 達達崩吧    時間: 2022-11-10 16:11
緣_Dz! 發表于 2022-11-9 18:33
更多-- 里面就有按發帖時間的

想要顯示出來,那個更多增加步驟了
作者: 緣_Dz!    時間: 2022-11-11 15:20
達達崩吧 發表于 2022-11-10 16:11
想要顯示出來,那個更多增加步驟了

forum.php?mod=forumdisplay&fid=44&filter=author&orderby=dateline
作者: 達達崩吧    時間: 2022-11-12 22:00
緣_Dz! 發表于 2022-11-11 15:20
forum.php?mod=forumdisplay&fid=44&filter=author&orderby=dateline

謝謝解答,不過我現在的問題是下面紅字和綠色字的地方不知道代碼怎么設置,綠色的那里應該是設置顯示發帖時間這四個字的,但是一直不知道應該寫哪個代碼,一般都是直接顯示代碼!
<a href="forum.php?mod=forumdisplay&fid=44&filter=author&orderby=dateline[heat]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'heat'} xw1{/if}">{lang order_heats}</a>&nbsp;
作者: 1314學習網    時間: 2022-11-12 22:44
達達崩吧 發表于 2022-11-12 22:00
謝謝解答,不過我現在的問題是下面紅字和綠色字的地方不知道代碼怎么設置,綠色的那里應該是設置顯示發帖 ...

直接寫中文,只要文件保存的編碼和你網站編碼一樣就行




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