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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 帖子标题美化/最后回复美化/昨日发贴数/欢迎新会员[7.2]

[复制链接]
紫色咖啡 发表于 2010-1-8 10:49:37 | 显示全部楼层 |阅读模式
插件发布
插件名称: 帖子标题美化+最后回复美化 for7.2+首页显示主题数,贴数,最高日贴数,欢迎新会员
插件来源:
适用版本: Discuz! 7.2
语言编码: GBK简体 
最后更新时间:
插件作者: 转载
插件简介: 大集合,,要顶哈,全免费.
本帖最后由 金字塔¢月 于 2010-02-04 17:06 编辑

帖子标题美化
打开文件templates/default/viewthread_node.htm
  1. <h1>$thread[subject]</h1>
复制代码
代码替换成:
  1. <h2 align="center" class="title"><font style="font-size:22px;line-height:120%;background:#E8F3FD">$post[subject]</font></h2>

  2. <div align="center">

  3. 本文来自: 孤独者论坛 <a href="http://www.gudud.cn" target="_blank"><font color="red"></font></a> 作者: <font color="red">$post[author]</font> 日期: $post[dateline] 阅读: <font color="red"><span class="smalltxt">{echo $thread[views]+1}</span></font> 人

  4. <a href="viewthread.php?action=printable&tid=$tid" target="_blank" <!--{if !$forum['ismoderator']}-->class="notabs"<!--{/if}-->>{lang thread_printable}</a>

  5. <a href="javascript:bookmark()" title="C收藏夹">收藏</a>

  6. <script type="text/javascript">

  7. // <![CDATA[

  8. function bookmark(){

  9. var title=document.title

  10. var url=document.location.href

  11. if (window.sidebar) window.sidebar.addPanel(title, url,"");

  12. else if( window.opera && window.print ){

  13. var mbm = document.createElement('a');

  14. mbm.setAttribute('rel','sidebar');

  15. mbm.setAttribute('href',url);

  16. mbm.setAttribute('title',title);

  17. mbm.click();}

  18. else if( document.all ) window.external.AddFavorite( url, title);

  19. }

  20. // ]]>

  21. </script>

  22. <!--{if MSGBIGSIZE || MSGSMALLSIZE}-->

  23. <!--{if MSGBIGSIZE}--><em>{lang big}</em><!--{/if}-->

  24. <em>{lang middle}</em>

  25. <!--{if MSGSMALLSIZE}--><em>{lang small}</em><!--{/if}-->

  26. <!--{/if}-->

  27. </div>
复制代码
最后回复优美化安装方法:

效果:
┌回复:艺纺网络电台(11.24)直 ...
├作者:唐殇君
└时间:2 小时前

打开:templates/default/discuz.htm 查找:
  1. <!--{elseif is_array($forum['lastpost'])}-->

  2. <p><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>

  3. <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>

  4. <!--{else}-->

  5. {lang never}

  6. <!--{/if}-->

  7. <!--{/if}-->

  8. </td>
复制代码
代码替换为:
  1. <!--{elseif is_array($forum['lastpost'])}-->

  2. <p>┌回复:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 22)}</a></p>

  3. <cite>├作者:<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> <br>└时间:$forum['lastpost']['dateline']
  4. </cite>

  5. <!--{else}-->

  6. {lang never}

  7. <!--{/if}-->

  8. <!--{/if}-->

  9. </td>
复制代码
首页显示主题数,最高日贴数,欢迎新会员
打开/include/index_classics.inc.php,查找:
  1. include template('discuz');
复制代码
上面加:
  1. $lastmember= $db->result_first("SELECT username FROM {$tablepre}members ORDER BY uid DESC LIMIT 1");
  2. $lastmemberuid= $db->result_first("SELECT uid FROM {$tablepre}members ORDER BY uid DESC LIMIT 1");
复制代码
修改templates/default/discuz.htm文件,查找:
  1. {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_members}: <em>$totalmembers</em>
复制代码
代码替换为:
  1. {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>,{lang index_threads}: <em>$threads</em>,{lang index_posts}: <em>$posts</em>,
  2. {lang index_members}: <em>$totalmembers</em>,{lang welcome_newmember} <cite><a href="space.php?uid=$lastmemberuid">$lastmember</a></cite>
复制代码
里面这些显示的项目可以根据自己需要添加或删除!解释:
  1. {lang index_today}: <em>$todayposts</em>:今日贴数
  2. {lang index_yesterday}: <em>$postdata[0]</em>:昨日贴数
  3. {lang index_maxday}: <em>$postdata[1]</em>:最高日贴数
  4. {lang index_members}: <em>$totalmembers</em>:会员总数
  5. {lang index_threads}: <em>$threads</em>:主题总数
  6. {lang index_posts}: <em>$posts</em>:帖子总数
  7. {lang welcome_newmember} <cite><a href="space.php?uid=$lastmemberuid">$lastmember</a></cite>:欢迎新会员
复制代码



傻瓜安装下载:
直接上传覆盖,请备份原文件,以防万一!!!!!!!!!
--------用了Xshow首页四格
————没有首页四格的

本帖子中包含更多资源

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

x

评分

1

查看全部评分

愤怒的兔子 发表于 2010-1-8 10:59:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

chengger 发表于 2010-1-9 00:48:02 | 显示全部楼层
本帖最后由 chengger 于 2010-01-09 00:50 编辑

{lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>,{lang index_maxday}: <em>$postdata[1]</em>,{lang index_threads}: <em>$threads</em>,{lang index_posts}: <em>$posts</em>,

{lang index_members}: <em>$totalmembers</em>,{lang welcome_newmember} <cite><a href="space.php?uid=$lastmemberuid">$lastmember</a></cite>红色部分楼主拉掉了
回复

使用道具 举报

ljianwuxin 发表于 2010-1-9 00:50:33 | 显示全部楼层
支持一下,美观的不是好,广州论坛 www.pooet.cn
回复

使用道具 举报

szyejin 发表于 2010-1-9 01:33:44 | 显示全部楼层
不错,真是好东西,谢谢楼主分享,收咯!
回复

使用道具 举报

哓柒 发表于 2010-1-9 17:47:23 | 显示全部楼层
顶起···········
回复

使用道具 举报

wpx97 发表于 2010-1-9 18:08:56 | 显示全部楼层
有用,呵呵
回复

使用道具 举报

bug反馈 发表于 2010-1-11 09:27:14 | 显示全部楼层
好贴要顶,感谢分享,已经使用了,很好,谢谢楼主!
回复

使用道具 举报

 楼主| 紫色咖啡 发表于 2010-1-27 09:57:53 | 显示全部楼层
{lang index_today}: $todayposts, {lang index_yesterday}: $postdata[0],{lang index_maxday}: $postdata ...
chengger 发表于 2010-01-09 00:48



    更改了,谢谢,我总是大意  呵呵
回复

使用道具 举报

lxl3399 发表于 2010-1-28 11:31:43 | 显示全部楼层
人过留名
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-19 04:00 , Processed in 0.103289 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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