discuz!x主题发帖时间和最后回帖时间调用代码函数方法教程
$thread[dateline]和$post[dateline] 分别是发帖、回帖时间的变量,作用于列表页。
$thread[dateline] = 发帖时间$thread[lastpost] =回帖时间或者说最后更新时间。
dz主题发帖时间和最后回帖时间调用代码参数$thread[dateline]和$thread[lastpost]
我们可以在列表页模版forumdisplay_list.htm中看到它们。
代码分别如下:
- <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
复制代码- <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>
复制代码 |