Discuz论坛的dateline标签格式在哪个文件里可以转换

问:

我现在用的forumdisplay_list.php文件模板dateline出来的标签是$value[dateline],显示出来的日期格式是:yyyy-MM-dd HH:mm:ss

我想将格式改为yyyy-MM-dd

请问应该在哪个文件里修改这个标签的显示格式?

答:

$value[dateline]换成{eval echo date(“Y年m月d日”,strtotime($value[dateline]))}

 

另外论坛首页discuz.php 文件修改:

<dd>
<!–{if $forum[‘permission’] == 1}–>
{lang private_forum}
<!–{else}–>
<!–{if $forum[‘redirect’]}–>
<a href=”$forumurl” class=”xi2″>{lang url_link}</a>
<!–{elseif is_array($forum[‘lastpost’])}–>
<!–{if $cat[‘forumcolumns’] < 3}–>
最后发表: <cite> <!–{if $forum[‘lastpost’][‘author’]}–>$forum[‘lastpost’][‘author’]<!–{else}–>$_G[setting][anonymoustext]<!–{/if}–> {echo date(“Y-m-d”,strtotime($forum[‘lastpost’][‘dateline’]))}</cite>
<!–{else}–>
<a href=”forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost”> {lang forum_lastpost}: $forum[lastpost][dateline]</a>
<!–{/if}–>
<!–{else}–>
{lang never}
<!–{/if}–>
<!–{/if}–>
</dd>

评论0

没有账号? 注册  忘记密码?