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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

▒▒ 首页显示最后回复主题完美美化[仿动网][加横排显示][7月19号更新]

[复制链接]
小熊设计屋 发表于 2007-5-9 20:21:25 | 显示全部楼层 |阅读模式
首页显示最后发表标题、作者、时间 修正美化版 discuz!5.5


插件作用:首页显示每个版块最新回复主题的标题、时间、作者。并完美适用任何风格,不撑开表格,不影响美观。
说      明:插件原创不是我,只是记得以前游人发过,我修改了一下而已!
适用版本:Discuz! 5。5正式版
修改文件:include/forum.func.php、templates/default/discuz.htm模板
安装难易:简

演示:http://www.sczzz.cn/bbs 四川站长站论坛 http://www.sczzz.cn
看了后,请支持一下<四川站长站 http://www.sczzz.cn>,谢谢!



修正了安装后标题和作者一个前一个后(错位)的问题、稍做美化,本论坛修正没有发现其他错误!
提醒:修改前请做好备份!
插件安装开始
一、修改 include/forum.func.php
查找:
list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'], $lastpost['author']) = is_array($forum['lastpost']) ? $forum['lastpost'] : explode("\t", $forum['lastpost']);


在后添加:
//首页显示最后发表标题BY www.wwwsc.cn
          $lastpost['subject1'] = cutstr($lastpost['subject'], 20, $dot = ' ...');
        //其中20是主题的字符长度,可自行修改
     //首页显示最后发表标题BY www.windowsba.com
Windowsba系统吧!

二、修改 风格文件/discuz.htm
查找:
<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}-->


替换为:
//首页显示最后发表标题BY www.kangding.sc.cn康定旅游网
<td align="left"  nowrap>{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>
作者: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->(<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>)<br> //首页显示最后发表标题BY www.wwwsc.cn


几位网友要求横排的代码.我修改如下:
方法是:在
<tr class="smalltxt"><td colspan="3">{lang forum_lastpost}:
后面插入以下代码:
<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>


如果不会,可向本人索取源代码.

[ 本帖最后由 小熊设计屋 于 2007-7-18 21:23 编辑 ]

本帖子中包含更多资源

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

x
 楼主| 小熊设计屋 发表于 2007-5-9 20:22:08 | 显示全部楼层
回复

使用道具 举报

数学菜菜 发表于 2007-5-9 20:29:24 | 显示全部楼层
板凳。。。。。。。。。。
回复

使用道具 举报

 楼主| 小熊设计屋 发表于 2007-5-9 22:02:28 | 显示全部楼层
板凳你抢了..............
回复

使用道具 举报

javascrif 发表于 2007-5-9 22:21:24 | 显示全部楼层
如果是回复帖的话,能够在标题前加个RE就更完美了,象pw一样的
回复

使用道具 举报

pc77maikongjian 发表于 2007-5-9 22:31:48 | 显示全部楼层
这个不错,顶一下了。
回复

使用道具 举报

楚狂人 发表于 2007-5-10 20:59:37 | 显示全部楼层
顶了 支持一下楼主
















如果你的论坛新搭建起来!  如果你的论坛新开辟几个板块!  如果你需要在最短的时间内充实论坛内容!如果你垂涎别人的论坛某个板块内容!  找我吧!我能帮你把你想要的某个论坛的内容全部搬到你的论坛!我能帮你在半个小时内把会员注册人数增加2000多人!我能为你的论坛发布日新帖量达到5000以上!需要的尽快联系我,这两天有空!QQ:511737878 案例:气死迅雷影视论坛 http://bbs.74xl.cn日更新影视资源300部,欢迎点击收藏!
回复

使用道具 举报

njbenben 发表于 2007-5-10 21:04:33 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

人九 发表于 2007-5-11 10:28:47 | 显示全部楼层
我要。zhangsu456@163.com  谢谢
回复

使用道具 举报

easyker 发表于 2007-5-11 10:47:25 | 显示全部楼层
:) :) :)
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-4 23:27 , Processed in 0.133867 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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