Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 贴子列表页forumdisplay.htm怎么修改发贴时间啊

[复制链接]
txdzx 发表于 2013-1-9 02:13:28 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X2.5
浏览器: IE6 IE8 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: http://123.com
如图,贴子列表页显示的是发贴的时间。我想改成日期比如2012-1-9或者1月9号,这一类的意思。知道教下小弟,谢谢了。
[code]<!--{subtemplate common/header}-->
<!--{subtemplate common/css}-->
<div id="pgt" class="pgs cznnw_com_d cl">
<dt class="z">
<h2>
<img src="template/cznnw_v12/forum/bkgg/ADA.gif" width="473" height="118" /></a></h2></dt>

<dt class="z">
<h2>
<img src="template/cznnw_v12/forum/bkgg/ADB.gif" width="473" height="118" /></a></h2></dt>
</div>
<div class="cznnw_bl"><div class="cznnw_boxtl"></div>
<!--{if $_G['forum']['ismoderator']}-->
<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
<!--{/if}-->
<style id="diy_style" type="text/css"></style>
<!--[diy=diynavtop]--><div id="diynavtop" class="area"></div><!--[/diy]-->

<div id="pgt" class="pgs cznnw_com_d cl">
<div id="pt" class="bm cl">
<!--{subtemplate common/simplesearchform}-->
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> $navigation
</div>
</div>
<!--{ad/text/wp a_t}-->
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div class="mn">
<div class="bm bml pbn">
<!--{if $_G[forum][banner] && !$subforumonly}--><img src="$_G[forum][banner]" alt="$_G['forum'][name]" /><!--{/if}-->
<div class="bm_h cl">
<!--{if $_G['page'] == 1 && $_G['forum']['rules']}--><span class="o"><img id="forum_rules_{$_G[fid]}_img" src="{IMGDIR}/collapsed_{$collapse[forum_rulesimg]}.gif" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('forum_rules_{$_G[fid]}')" /></span><!--{/if}-->
<span class="y">
<a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum" id="a_favorite" class="fa_fav" onclick="showWindow(this.id, this.href, 'get', 0);">{lang forum_favorite}</a>
<!--{if rssforumperm($_G['forum']) && $_G[setting][rssstatus] && !$_G['gp_archiveid'] && !$subforumonly}--><span class="pipe">|</span><a href="forum.php?mod=rss&fid=$_G[fid]&auth=$rssauth" class="fa_rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
<!--{if !empty($forumarchive)}-->
<span class="pipe">|</span><a id="forumarchive" href="javascript:;" class="fa_achv" onmouseover="showMenu(this.id)"><!--{if $_G['gp_archiveid']}-->$forumarchive[$_G['gp_archiveid']]['displayname']<!--{else}-->{lang forum_archive}<!--{/if}--></a>
<!--{/if}-->
<!--{hook/forumdisplay_forumaction}-->

<!--{if $_G['forum']['ismoderator']}-->
<!--{if $_G['forum']['recyclebin']}-->
<span class="pipe">|</span><a href="{if $_G['adminid'] == 1}admin.php?mod=forum&action=recyclebin&frames=yes{elseif $_G['forum']['ismoderator']}forum.php?mod=modcp&action=recyclebin&fid=$_G[fid]{/if}" class="fa_bin" target="_blank">{lang forum_recyclebin}</a>
<!--{/if}-->
<!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}-->
<span class="pipe">|</span><strong>
<!--{if $_G['forum']['status'] != 3}-->
<a href="forum.php?mod=modcp&fid=$_G[fid]">{lang modcp}</a>
<!--{else}-->
<a href="forum.php?mod=group&action=manage&fid=$_G[fid]">{lang modcp}</a>
<!--{/if}-->
</strong>
<!--{/if}-->
<!--{if $_G['forum']['modworks']}-->
<!--{if $modusernum}--><span class="pipe">|</span><a href="forum.php?mod=modcp&action=moderate&op=members&fid=$_G[fid]" target="_blank">{lang mod_works_moduser_existence}</a><!--{/if}-->
<!--{/if}-->
<!--{hook/forumdisplay_modlink}-->
<!--{/if}-->
</span>
<h1 class="xs2">
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]">$_G['forum'][name]</a>
<!--{if !$subforumonly}--><span class="xs1 xw0 i">{lang index_today}: <strong class="xi1">$_G[forum][todayposts]</strong><span class="pipe">|</span>{lang index_threads}: <strong class="xi1">$_G[forum][threads]</strong></span><!--{/if}-->
</h1>
</div>
<!--{if (!empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])) || $moderatedby || ($_G['page'] == 1 && $_G['forum']['rules'])}-->
<div class="bm_c cl pbn">
<!--{if !empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])}-->
<div class="pbn">{lang forum_domain}: <a href="http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}" id="group_link">http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}</a></div>
<!--{/if}-->
<!--{if $moderatedby}--><div>{lang forum_modedby}: <span class="xi2">$moderatedby</span></div><!--{/if}-->
<!--{if $_G['page'] == 1 && $_G['forum']['rules']}-->
<div id="forum_rules_{$_G[fid]}" style="$collapse['forum_rules'];">
<div class="ptn xg2">$_G['forum'][rules]</div>
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if !empty($forumarchive)}-->
<div id="forumarchive_menu" class="p_pop" style="display:none">
<ul>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]">{lang threads_all}</a></li>
<!--{loop $forumarchive $id $info}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&archiveid=$id">{$info['displayname']} ({$info['threads']})</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</div>

<!--{hook/forumdisplay_top}-->

<!--{if $subexists && $_G['page'] == 1}--><!--{template forum/forumdisplay_subforum}--><!--{/if}-->

<div class="drag">
<!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
</div>
</div></div>

<!--{hook/forumdisplay_middle}-->
<!--{if !$subforumonly}-->

<div id="pgt" class="pgs cznnw_com_d cl">
<div class="pgt">$multipage</div>
<span class="pgb y"><a href="forum.php">{lang return_index}</a></span>
<!--{if !$_G['gp_archiveid']}--><a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}"><img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->
<!--{hook/forumdisplay_postbutton_top}-->
</div>
<!--{subtemplate forum/forumdisplay_list}-->
<!--{/if}-->
<div id="pgt" class="pgs cznnw_com_d cl">
<!--[diy=diyfastposttop]--><div id="diyfastposttop" class="area"></div><!--[/diy]-->
<!--{hook/forumdisplay_bottom}-->
<!--{if $fastpost && ($_G['group']['allowpost'] || !$_G['uid'])}-->
<!--{template forum/forumdisplay_fastpost}-->
<!--{/if}-->
</div>
<div class="cznnw_boxbl"></div></div>

<div class="cznnw_br"><div class="cznnw_boxtr"></div>
<div id="pgt" class="pgs cznnw_com_d cl">
<div align="center">
<object
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="250" height="388" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="/template/cznnw_v12/forum/bkgg/bankuai.swf?data=/template/cznnw_v12/forum/bkgg/index.xml" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="/template/cznnw_v12/forum/bkgg/bankuai.swf?data=/template/cznnw_v12/forum/bkgg/index.xml"
wmode="transparent" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="250" height="388"></embed>
</object>
</div></div>
<div align="center">
<div id="pgt" class="pgs cznnw_com_d cl">
<div class="ab">
<h2>
<a href="/forum-73-1.html">
<img src="template/cznnw_v12/forum/bkgg/06.jpg" width="250" height="120" /></a></h2>
</div>
</div>
<div id="pgt" class="pgs cznnw_com_d cl">
<div class="ab">
<h2>
<a href="/forum-61-1.html">
<img src="template/cznnw_v12/forum/bkgg/07.jpg" width="250" height="120" /></a></h2>
</div>
</div>
<div id="pgt" class="pgs cznnw_com_d cl">
<div class="ab">
<h2>
<a href="/forum-43-1.html">
<img src="template/cznnw_v12/forum/bkgg/08.jpg" width="250" height="120" /></a></h2>
</div>
</div>
<div id="pgt" class="pgs cznnw_com_d cl">
<div class="ab">
<h2>
<a href="/forum-43-1.html">
<img src="template/cznnw_v12/forum/bkgg/09.jpg" width="250" height="120" /></a></h2>
</div>
</div>
<div id="pgt" class="pgs cznnw_com_d cl">
<div class="ab">
<h2>
<a href="/forum-72-1.html">
<img src="template/cznnw_v12/forum/bkgg/10.jpg" width="250" height="388" /></a></h2>
</div>
</div>
</div></div></div>

<div class="cl"></div>

<!--{if !empty($forumarchive)}-->
<div id="forumarchive_menu" class="p_pop" style="display:none">
<ul>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]">{lang threads_all}</a></li>
<!--{loop $forumarchive $id $info}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&archiveid=$id">{$info['displayname']} ({$info['threads']})</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->

<!--{if $_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])}-->
<ul class="p_pop" id="newspecial_menu" style="display: none">
<!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]">{lang post_newthread}</a></li><!--{/if}-->
<!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
<!--{if $_G['forum']['threadsorts']['show'][$id]}-->
<li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&extra=$extra&sortid=$id">$threadsorts</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
<!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
<!--{if $_G['setting']['threadplugins']}-->
<!--{loop $_G['forum']['threadplugin'] $tpid}-->
<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
<li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url($_G[setting][threadplugins][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G[setting][threadplugins][$tpid][name]}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->


<!--{if $_G['setting']['threadmaxpages'] > 1 && $page && !$subforumonly}-->
<script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, <!--{if $page > 1}-->1<!--{else}-->0<!--{/if}-->, <!--{if $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->1<!--{else}-->0<!--{/if}-->, 'forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_G[gp_orderby]}{$forumdisplayadd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
briskvoice 发表于 2013-1-9 22:29:19 | 显示全部楼层
你是想用标准方式显示时间模式吧,看了下源码 定义在数组里 如果后台版块不好设置的话就要改函数了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-25 15:45 , Processed in 0.023702 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表