版本说明:
<font%20color="Red">1. 没有版块简介的时候显示 「<font%20color="Red"><font%20color="Red"> 点击申请版主<font%20color="Red">」
<font%20color="Red">2. 有版块简介的时候显示版块简介
<font%20color="Red">3. 没有版主显示版主空缺
<font%20color="Red">4. 有版主下拉菜单显示版主
<font%20color="Red">5. 有主题显示:最后发布的主题及作者
<font%20color="Red">6. 没有主题显示:暂无主题,抢先发布
<font%20color="Red">7. 有新主题,右上角显示主题数
具体效果见下图:
<font%20color="Red"> 首先:
修改 static/js/目录下的:common.js
用记事本打开,在底部查找
- if(BROWSER.ie) {
- document.documentElement.addBehavior("#default#userdata");
- }
替换为:
- if(BROWSER.ie) {
- document.documentElement.addBehavior("#default#userdata");
- }
- function forumbackshow(id){
- document.getElementById(id).style.background="#f8f8f8";
- }
- function forumbackout(id){
- document.getElementById(id).style.background="";
- }
- function showgoto() {
- var i, args=showgoto.arguments; document.showgtvlaue = false;
- for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
- }
修 template/default/common 目录下的:common.css
用记事本打开,在底部查找
- .slidebox {display: none; }
替换为:
- .slidebox {display: none; }
- /* 横排美化 */
- .ficodiv {float:left;}
- .ficodiv,.ficodiv img{width:56px; height:56px; overflow:hidden; margin-top:2px; margin-right:5px;}
- .f_ttdiv {height:56px; line-height:20px;overflow:hidden;}
- .f_name {height:20px; overflow:hidden;}
- .f_name small{float:right;color:#aaa;}
- .f_name small span{color:#f30;}
- .f_name a span{font-size:14px;}
- .f_lyhp {float:left;}
- .f_lyhp {color:#999;}
- .f_bkjs {height:20px; line-height:18px; overflow:hidden;color:#888;}
- .f_tzmh {padding:5px; height:18px; line-height:20px; overflow:hidden;}
<font%20color="Red"> 其次:
修改 template/default/forum 或者您目前使用风格 forum 目录下的 discuz.htm 的文件
查找:
- <td width="$cat[forumcolwidth]">
- <div {if !empty($forum[extra][iconwidth])
&& !empty($forum[icon])} style="width:
{$forum[extra][iconwidth]}px;"{/if}> - <!--{if $forum[icon]}-->
- $forum[icon]
- <!--{else}-->
- <a href="$forumurl"{if $forum[redirect]}
target="_blank"{/if}><img src="{IMGDIR}/forum{if
$forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a> - <!--{/if}-->
- </div>
- <dl{if !empty($forum[extra][iconwidth]) &&
!empty($forum[icon])} style="margin-left:
{$forum[extra][iconwidth]}px;"{/if}> - <dt><a href="$forumurl"{if $forum[redirect]}
target="_blank"{/if}{if $forum[extra][namecolor]} style="color:
{$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if
$forum[todayposts] && !$forum['redirect']}--><em
title="{lang forum_todayposts}">
($forum[todayposts])</em><!--{/if}--></dt> - <!--{if
empty($forum[redirect])}--><dd><em>{lang forum_threads}:
$forum[threads]</em>, <em>{lang forum_posts}:
$forum[posts]</em></dd><!--{/if}--> - <dd>
- <!--{if $forum['permission'] == 1}-->
- {lang private_forum}
- <!--{else}-->
- <!--{if $forum['redirect']}-->
- <a href="$forumurl" >{lang url_link}</a>
- <!--{elseif is_array($forum['lastpost'])}-->
- <!--{if $cat['forumcolumns'] < 3}-->
- <a
href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"
><!--{echo cutstr($forum[lastpost][subject],
30)}--></a> <cite>$forum[lastpost][dateline] <!--{if
$forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> - <!--{else}-->
- <a
href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang
forum_lastpost}: $forum[lastpost][dateline]</a> - <!--{/if}-->
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </dd>
- </dl>
- </td>
替换为:
- <td width="$cat[forumcolwidth]" style="padding:10px 5px; ">
- <div id="showback_$forum[fid]" style="border:1px solid #ccc;
cursor:default;" onmouseover="forumbackshow('showback_$forum[fid]')"
onmouseout="forumbackout('showback_$forum[fid]')"> - <div style="padding:5px; ">
- <div >
- <!--{if $forum[icon]}-->
- $forum[icon]
- <!--{else}-->
- <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}>
- <img src="{IMGDIR}/forum{if%20$forum[folder]}_new{/if}.gif" alt="$forum[name]" />
- </a>
- <!--{/if}-->
- </div>
- <div {if !empty($forum[extra][iconwidth])
&& !empty($forum[icon])} style="margin-left:
{$forum[extra][iconwidth]}px;"{/if}> - <div title="$forum[name]">
- <small>
- <!--{if $forum[todayposts] && !$forum['redirect']}-->
- (<span title="{lang forum_todayposts}">$forum[todayposts]</span>)
- <!--{/if}-->
- </small>
- <a href="$forumurl" {if
$forum[redirect]}target="_blank"{/if}{if $forum[extra][namecolor]}
style="color:{$forum[extra][namecolor]};"{/if}> - <span>$forum[name]</span>
- </a>
- </div>
- <div >
- <!--{if empty($forum[redirect])}-->
- <div >
- <span> 主题:</span><em style="color:#f60;">$forum[threads]</em>
- </div><div style="float:left;">
- <span> 帖子:</span><em style="color:#090;">$forum[posts]</em>
- <!--{if $forum[moderators]}-->
- <span id="default{$forum['fid']}" onmouseover="showMenu(this.id);"> 版主列表</span>
- <ul id="default{$forum['fid']}_menu"
style="display:none;"><!--{echo str_replace(array(',','
c="1"'),'',$forum[moderators]);}--></ul><!--{else}--> - 版主空缺
- <!--{/if}-->
- </div>
- <!--{/if}-->
- </div>
- <div >
- <!--{if $forum[description]}-->
- <span tabindex="$forum[description]">$forum[description]</span>
- <!--{else}-->
- <a href="您的版主申请的链接地址"><b style="color:#f30;"> 点击申请版主</b></a>
- <!--{/if}-->
- </div>
- </div>
- </div>
- <div >
- <!--{if $forum['redirect']}-->
- <a href="$forumurl" >{lang url_link}</a>
- <!--{elseif is_array($forum['lastpost'])}-->
- <FONT color=#003D79> 最后发表:</font>
- <a href="forum.php?mod=viewthread&tid=$forum[lastpost][tid]" >
- <!--{echo cutstr($forum[lastpost][subject], 25)}--></a>
- <!--{if
$forum['lastpost']['author']}-->(by:$forum['lastpost']['author']<!--{else}-->{lang
anonymous}<!--{/if}-->) - </a>
- <!--{else}-->
- <FONT color=#003D79> 最后发表:</font> 暂无主题, <a
href="forum.php?mod=post&action=newthread&fid=$forum[fid]"> 抢先
发表</a>! - <!--{/if}-->
- </div>
- </div>
- </td>
<a href="<font%20color="red"> 您的版主申请的链接地址"><b style="color:#f30;"> 点击申请版主</b></a>
自行修改为您的版主申请的链接地址!
查找:
- <a
href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"
><!--{echo cutstr($forum[lastpost][subject],
30)}--></a> <cite>$forum[lastpost][dateline] <!--{if
$forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
替换为:
- <a
href="forum.php?mod=viewthread&tid=$forum[lastpost][tid]"
><!--{echo cutstr($forum[lastpost][subject],
30)}--></a> <cite>$forum[lastpost][dateline] <!--{if
$forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<font%20color="Red"><font%20color="Black"> 查找:
- <p
>{lang index_today}:
<em>$todayposts</em><span
>|</span>{lang index_yesterday}:
<em>$postdata[0]</em><span
>|</span>{lang index_posts}:
<em>$posts</em><span >|</span>{lang
index_members}:
<em>$_G['cache']['userstats']['totalmembers']</em><!--{if
$_G['setting']['lastmember']}--><span
>|</span>{lang welcome_new_members}:
<em><a href="home.php?mod=space&username={echo
rawurlencode($_G['setting']['lastmember'])}" target="_blank"
>$_G['setting']['lastmember']</a></em><!--{/if}--></p>
替换为:
- <p
>{lang index_today}:
<em>$todayposts</em><span > |
</span><img src="{IMGDIR}/yestoday.gif" alt="昨日贴数"
style="position:relative; top:4px;"> {lang index_yesterday}:
$postdata[0]<span > | </span><img
src="{IMGDIR}/replay.gif" alt="总贴数" style="position:relative;
top:4px;"> {lang index_posts}: <em>$posts</em><span
> | </span><img src="{IMGDIR}/members.gif"
alt="会员数" style="position:relative; top:4px;"> {lang index_members}:
<em>$_G['cache']['userstats']['totalmembers']</em><!--{if
$_G['setting']['lastmember']}--><span > |
</span><img src="{IMGDIR}/welcome.gif" alt="欢迎新会员"
style="position:relative; top:4px;"> {lang welcome_new_members}:
<em><a href="home.php?mod=space&username={echo
rawurlencode($_G['setting']['lastmember'])}" target="_blank"
>$_G['setting']['lastmember']</a></em><!--{/if}--></p>
使用手动修改版的请把以下文件里面的图片上传到:static/image/common 目录下
会实现昨日,帖子,会员,欢迎新会员前面家图标:
ok 后台更新一下缓存,看看效果吧!