找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3272|回复: 0

5.5首页显示最后回复美化方法

[复制链接]
发表于 2007-3-13 17:47:23 | 显示全部楼层 |阅读模式
http://www.discuz.net/viewthread.php?tid=554663&highlight=%CF%D4%CA%BE%D7%EE%BA%F3%BB%D8%B8%B4

二.首页显示最后回复
1.打开\include\forum.func.php
找到

  1. $lastpost['dateline'] = gmdate("$dateformat $timeformat", $lastpost['dateline'] + $timeoffset * 3600);
复制代码


后边加上

  1. $lastpost['subjectsc'] = cutstr($lastpost['subject'], 18);
复制代码


2.打开templates\default\discuz.htm
查找

  1. <!--{if is_array($forum['lastpost'])}-->
  2.                                                 <td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>
  3.                                                 <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
  4.                                                 </td>
  5.                                         <!--{else}-->
复制代码


替换为:

  1. <!--{if is_array($forum['lastpost'])}-->
  2.       <td align="left"  title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>
  3.       <span class="smalltxt">标题: <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum['lastpost'][subjectsc]</a></span><br> <!--{if $forum['lastpost']['author']}-->作者: $forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
  4.       </td>
  5.      <!--{else}-->
复制代码


OK!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1|闽公网安备35020302032614号 )

GMT+8, 2026-4-17 16:15

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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