******************************************************************************
*
* HACK名称:帖内主题美化★ 本文来自+转载说明+作者+点击次数★for DZ6.0
* 适用版本:dz 6.0正式版
* 安装难度: 简单
* 数 据 表: 无
* 修改文件:templates/default(你的风格模版)/viewthread.htm
* 增加文件:无
* 技术支持:Discuz!
******************************************************************************
打开风格模版目录下的:
templates/default(你的风格模版)/viewthread.htm文件
找到
<h2>$post[subject]</h2>
在其后加入
<!--{if $post['first']}--><hr color={BORDERCOLOR}>
<font color=navy>本文来自:<font color=blue><span class="smalltxt"><a href="{$boardurl}"><font color="#800000">$bbname</font></a></span></font> 转载请注明出自【<a href="{$boardurl}"><b><font color="#800000">www.funislands.net</b></font></a>】 作者:<font color=blue><span class="smalltxt">$post[author]</span></font><!--{if $post['first']}--><b> 您是第<font color=red><span class="smalltxt">{echo $thread[views]+1}</span></font>个浏览者</b><!--{/if}--><hr color={BORDERCOLOR}></font><!--{/if}-->
在复制过程中,请将
www.funislands.net改成您自己的域名。
图片演示
[attach]12872[/attach]
*此修改只会在每一主题的第一帖显示,而不会在每一个回帖中显示,所以不会造成太乱的感觉,经测试后一切正常。
*****************************************************************************
今日做了一些小改动,觉得用<hr color={BORDERCOLOR}>会太长而且如果右边有广告会不美观;没有用虚线来表达更美现,结果很理想。
<!--{if $post['first']}--><br>-----------------------------------------------------<br>
<font color=navy>本文来自:<font color=blue><span class="smalltxt"><a href="{$boardurl}"><font color="#800000">$bbname</font></a></span></font> 转载请注明出自【<a href="{$boardurl}"><b><font color="#800000">www.funislands.net</b></font></a>】 作者:<font color=blue><span class="smalltxt">$post[author]</span></font><!--{if $post['first']}--><b> 您是第<font color=red><span class="smalltxt">{echo $thread[views]+1}</span></font>个浏览者</b><!--{/if}--> <br>-----------------------------------------------------</font><!--{/if}-->
当然,如果你喜欢用<hr>可以继续使用最上面的方法。
[attach]12873[/attach]