请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

Discuz! 官方站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Discuz! X 最新研发动态 通过这个窗口,关注跟踪我们的研发进展 Discuz! 开发技术文库 - 给官方提建议

Discuz! X2 正式版下载 帮助网站实现一站式服务  商业支持服务咨询 下载 - 安装 - 常见问题 - 转换 - 讨论 - 购买

2012站长年会开启报名 限量船票免费发放 Discuz!十大荣誉用户评选 - Discuz!NT3.6发布 漫游引入QQ空间游戏 -一骑新区横扫三国-5d6d免费论坛

查看: 16716|回复: 55

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

Rank: 1

UID
338941
积分
42
帖子
51
威望
0
在线时间
0 小时
注册时间
2006-4-4
发表于 2006-11-21 00:34:34 |显示全部楼层
插件作用:完全仿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
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区

Rank: 1

UID
338941
积分
42
帖子
51
威望
0
在线时间
0 小时
注册时间
2006-4-4
发表于 2006-11-21 00:34:56 |显示全部楼层
占位!~~
http://www.9icity.net
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区

使用道具 举报

Rank: 1

UID
338941
积分
42
帖子
51
威望
0
在线时间
0 小时
注册时间
2006-4-4
发表于 2006-11-21 01:23:30 |显示全部楼层
顶上去!~~~
http://www.9icity.net
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区

使用道具 举报

Rank: 6Rank: 6

UID
374161
积分
2071
帖子
1933
威望
21
在线时间
263 小时
注册时间
2006-5-27
发表于 2006-11-21 01:33:56 |显示全部楼层
占满没有?????????????????

使用道具 举报

Rank: 2

UID
452647
积分
108
帖子
47
威望
0
在线时间
33 小时
注册时间
2006-9-30
发表于 2006-11-21 09:18:06 |显示全部楼层
演示签名

使用道具 举报

Rank: 3Rank: 3

UID
308941
积分
327
帖子
389
威望
0
在线时间
5 小时
注册时间
2006-1-15
发表于 2006-11-21 11:01:22 |显示全部楼层
不错,演示http://www.fyue.net/

使用道具 举报

Rank: 1

UID
438613
积分
38
帖子
47
威望
0
在线时间
0 小时
注册时间
2006-9-12
发表于 2006-11-21 16:46:12 |显示全部楼层
二、修改 风格文件/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

使用道具 举报

Rank: 1

UID
338941
积分
42
帖子
51
威望
0
在线时间
0 小时
注册时间
2006-4-4
发表于 2006-11-21 20:28:37 |显示全部楼层
二、修改 风格文件/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
软件下载,游戏动漫,时尚论坛,全力打造一流娱乐社区

使用道具 举报

Rank: 2

UID
338227
积分
119
帖子
149
威望
0
在线时间
0 小时
注册时间
2006-4-3
发表于 2006-11-22 02:11:24 |显示全部楼层
怎么修改
┌标题:
├作者:
└时间:

的颜色?

使用道具 举报

King

Discuz! Team - Add-ons

Rank: 6Rank: 6

UID
358333
积分
2189
帖子
1153
威望
53
在线时间
369 小时
注册时间
2006-5-1
发表于 2006-11-22 02:15:05 |显示全部楼层
真的没问题吗。。
之前用一个害到我论坛无法显示。。。
出售7.2 江湖客栈,猜拳游戏,社区监狱,许愿池,音乐盒(自制,可上传),猪头术(都是7.2无法正常运行的插件)以及插件升级/修复。
目前只支持7.X,可以用FB登录插件跟我换。

使用道具 举报

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

fastpost

手机版|Archiver|北京康盛新创科技有限责任公司 ( 京ICP证110024号|京网文[2011]0019-007号 )  

GMT+8, 2012-2-13 08:35 , Processed in 0.112595 second(s), 16 queries , Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部