Manyou诚邀开发者加盟 | 常见问题
《站长》俱乐部官方群公布 城市联络员机会多多
立即免费下载 Discuz!7.0.0 正式版
安装升级指南 | 用户手册 | 新手建站学堂
基于.net架构的Discuz!NT2.6正式版发布
Comsenz公司2009年招贤纳士,期待您的加盟
Discuz!收费服务内容及价格
7月重庆、成都、西安三地社区运营实战特训速报名
Discuz!/UCHome 专用官方虚拟主机
牧场新服一起联运:豆浆机免费带回家
基于Discuz!的免费论坛空间5D6D
康盛创想《站长》俱乐部18城市互动之旅报名ing
返回列表 回复 发帖

仿PW首页显示最后发表标题、作者、时间 修正美化版 for discuz!5.0

插件作用:完全仿PW在首页显示每个版块最新回复主题的标题、时间、作者。并完美适用任何风格,不撑开表格,不影响美观。
说      明:插件原创不是我,只是记得以前游人发过,我修改了一下而已!
适用版本:Discuz! 5。0正式版
修改文件:include/forum.func.php、templates/default/discuz.htm模板
安装难易:简
演  示:http://www.9icity.net
修正了安装后标题和作者一个前一个后(错位)的问题、稍做美化,本论坛修正没有发现其他错误!
提醒:修改前请做好备份!

插件安装开始
一、修改 include/forum.func.php
查找:
  1. list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'], $lastpost['author']) = is_array($forum['lastpost']) ? $forum['lastpost'] : explode("\t", $forum['lastpost']);
复制代码
在后添加:
  1.         //首页显示最后发表标题BY 9icity.net
  2.           $lastpost['subject1'] = cutstr($lastpost['subject'], 20, $dot = ' ...');
  3.         //其中20是主题的字符长度,可自行修改
  4.      //首页显示最后发表标题BY 9icity.net
复制代码
二、修改 风格文件/discuz.htm
查找:
  1. <td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap><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}
  2. <!--{/if}-->
复制代码
替换为:
  1. <!--首页显示最后发表标题--BY 9icity.net>
  2. <td align="left"  nowrap>
  3. ┌{lang forum_lastpost_in}: <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost"  title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}">$forum[lastpost][subject1]</a></span><br>
  4. ├作者: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--><br>
  5. └时间: <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
  6. <!--首页显示最后发表标题--BY 9icity.net>
复制代码
[ 本帖最后由 gtr_0106 于 2006-11-21 01:23 编辑 ]
1.gif
http://www.9icity.net
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区
占位!~~
http://www.9icity.net
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区
顶上去!~~~
http://www.9icity.net
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区
占满没有?????????????????
演示签名
不错,演示http://www.fyue.net/
二、修改 风格文件/discuz.htm
查找:

[Copy to clipboard]
CODE:
<td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap><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}-->

找不到
Simple is Best.
sysoul.com
二、修改 风格文件/discuz.htm
查找:

[Copy to clipboard]
CODE:
<td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap><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}-->

找不到
可以查找
  1. <td align="center" title="{lang forum_lastpost_in}:
复制代码
然后在找到
  1. <!--{/if}-->
复制代码
之间的这段代码!!!

[ 本帖最后由 gtr_0106 于 2006-11-21 20:30 编辑 ]
http://www.9icity.net
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区
怎么修改
┌标题:
├作者:
└时间:
的颜色?
真的没问题吗。。
之前用一个害到我论坛无法显示。。。
QQ论坛 - 点这里送IP~~~感恩!!
住马来西亚噢,去读电脑系,又想研究论坛了,租了2个主机来玩,嘿~~
返回列表