插件发布
插件名称: |
帖子标题美化+最后回复美化 for7.2+首页显示主题数,贴数,最高日贴数,欢迎新会员 |
插件来源: |
|
适用版本: |
Discuz! 7.2 |
语言编码: |
GBK简体 |
最后更新时间: |
|
插件作者: |
转载 |
插件简介: |
大集合,,要顶哈,全免费. |
本帖最后由 金字塔¢月 于 2010-02-04 17:06 编辑
帖子标题美化
打开文件templates/default/viewthread_node.htm- <h1>$thread[subject]</h1>
复制代码 代码替换成:- <h2 align="center" class="title"><font style="font-size:22px;line-height:120%;background:#E8F3FD">$post[subject]</font></h2>
- <div align="center">
- 本文来自: 孤独者论坛 <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> 人
- <a href="viewthread.php?action=printable&tid=$tid" target="_blank" <!--{if !$forum['ismoderator']}-->class="notabs"<!--{/if}-->>{lang thread_printable}</a>
- <a href="javascript:bookmark()" title="C收藏夹">收藏</a>
- <script type="text/javascript">
- // <![CDATA[
- function bookmark(){
- var title=document.title
- var url=document.location.href
- if (window.sidebar) window.sidebar.addPanel(title, url,"");
- else if( window.opera && window.print ){
- var mbm = document.createElement('a');
- mbm.setAttribute('rel','sidebar');
- mbm.setAttribute('href',url);
- mbm.setAttribute('title',title);
- mbm.click();}
- else if( document.all ) window.external.AddFavorite( url, title);
- }
- // ]]>
- </script>
- <!--{if MSGBIGSIZE || MSGSMALLSIZE}-->
- <!--{if MSGBIGSIZE}--><em>{lang big}</em><!--{/if}-->
- <em>{lang middle}</em>
- <!--{if MSGSMALLSIZE}--><em>{lang small}</em><!--{/if}-->
- <!--{/if}-->
- </div>
复制代码 最后回复优美化安装方法:
效果:
┌回复:艺纺网络电台(11.24)直 ...
├作者:唐殇君
└时间:2 小时前
打开:templates/default/discuz.htm 查找:- <!--{elseif is_array($forum['lastpost'])}-->
- <p><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>
- <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </td>
复制代码 代码替换为:- <!--{elseif is_array($forum['lastpost'])}-->
- <p>┌回复:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 22)}</a></p>
- <cite>├作者:<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> <br>└时间:$forum['lastpost']['dateline']
- </cite>
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </td>
复制代码 首页显示主题数,最高日贴数,欢迎新会员
打开/include/index_classics.inc.php,查找:- include template('discuz');
复制代码 上面加:- $lastmember= $db->result_first("SELECT username FROM {$tablepre}members ORDER BY uid DESC LIMIT 1");
- $lastmemberuid= $db->result_first("SELECT uid FROM {$tablepre}members ORDER BY uid DESC LIMIT 1");
复制代码 修改templates/default/discuz.htm文件,查找:- {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_members}: <em>$totalmembers</em>
复制代码 代码替换为:- {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>,
- {lang index_members}: <em>$totalmembers</em>,{lang welcome_newmember} <cite><a href="space.php?uid=$lastmemberuid">$lastmember</a></cite>
复制代码 里面这些显示的项目可以根据自己需要添加或删除!解释:- {lang index_today}: <em>$todayposts</em>:今日贴数
- {lang index_yesterday}: <em>$postdata[0]</em>:昨日贴数
- {lang index_maxday}: <em>$postdata[1]</em>:最高日贴数
- {lang index_members}: <em>$totalmembers</em>:会员总数
- {lang index_threads}: <em>$threads</em>:主题总数
- {lang index_posts}: <em>$posts</em>:帖子总数
- {lang welcome_newmember} <cite><a href="space.php?uid=$lastmemberuid">$lastmember</a></cite>:欢迎新会员
复制代码
傻瓜安装下载:
直接上传覆盖,请备份原文件,以防万一!!!!!!!!!
--------用了Xshow首页四格
————没有首页四格的 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
1
查看全部评分
-
|