请选择 进入手机版 | 继续访问电脑版

dz主题发帖时间和最后回帖时间调用代码参数$thread[dateline]和$thread[lastpost]

[复制链接]
查看4147 | 回复0 | 2020-2-16 16:40 | 显示全部楼层 |阅读模式
discuz!x主题发帖时间和最后回帖时间调用代码函数方法教程
$thread[dateline]和$post[dateline] 分别是发帖、回帖时间的变量,作用于列表页。
$thread[dateline] = 发帖时间$thread[lastpost] =回帖时间或者说最后更新时间。

dz主题发帖时间和最后回帖时间调用代码参数$thread[dateline]和$thread[lastpost]

dz主题发帖时间和最后回帖时间调用代码参数$thread[dateline]和$thread[lastpost]

我们可以在列表页模版forumdisplay_list.htm中看到它们。
代码分别如下:

  1. <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
复制代码
  1. <em><a href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></em>
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-3-24