首页版块介绍美化效果:
演示地址:
http://bbs.suidc.net
补充说明:
我在后来的几次修改中发现,这个版块美化的方法必须要保证将代码的位置保持与原来一致,否则就会错乱,需要进行版块美化并且修改失败的,务必在此跟帖,联系本人帮助修改!!
修改方法(修改前记得先备份文件):
第一步:打开discuz.htm
查找:
复制内容到剪贴板
代码:
<!--{if $forum['redirect']}-->
--
<!--{elseif is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 40)}</a>
<cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
<!--{else}--> 替换为:
复制内容到剪贴板
代码:
<!--{if is_array($forum['lastpost'])}-->
<span style="line-height:1.4em">
┌{lang forum_lastpost_in}: <a title="標題: $forum[lastpost][subject]{LF}時間: $forum[lastpost][dateline]" href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 28)}</a><br />
├來自: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost"> <img src="{IMGDIR}/lastpost.gif" border="0"></a><!--{else}-->{lang anonymous}<!--{/if}--><br />
└時間: $forum[lastpost][dateline]
</span>
<!--{else}-->第二步、打开forumdisplay_subforum.htm
共2处
查找:
复制内容到剪贴板
代码:
<!--{if is_array($sub['lastpost'])}-->
<a href="redirect.php?tid=$sub[lastpost][tid]&goto=lastpost#lastpost">$sub[lastpost][subject]</a>
<cite>{lang forum_lastpost_by} <!--{if $sub['lastpost']['author']}-->$sub[lastpost][author]<!--{else}-->{lang anonymous}<!--{/if}--> - $sub[lastpost][dateline]</cite>
<!--{else}-->代替为:
复制内容到剪贴板
代码:
<!--{if is_array($sub['lastpost'])}-->
<span style="line-height:1.4em">
┌標題: <a href="redirect.php?tid=$sub[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($sub[lastpost][subject], 28)}</a><br />
├來自: <!--{if $sub['lastpost']['author']}-->$sub[lastpost][author]<!--{else}-->{lang anonymous}<!--{/if}--><a href="redirect.php?tid=$sub[lastpost][tid]&goto=lastpost#lastpost"> <img src="{IMGDIR}/lastpost.gif" border="0"></a><br />
└時間: $sub[lastpost][dateline]
</span>
<!--{else}-->第三步:将附件里的图片上传到你使用的风格所对应的图片文件夹下