[zt]首页横排美化 自定义图片 带介绍 去掉最后发表 去除有无新贴图标等
<DIV id=threadtitle> </DIV><DIV class=t_msgfontfix>
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=t_msgfont id=postmessage_9987948>打开 templates/default/ 下的disucz.htm<BR>找到
<DIV class=quote>
<BLOCKQUOTE><th width="$cat"{$forum}></BLOCKQUOTE></DIV>如果只需要显示图片,则在后面加上下面的代码
<DIV class=quote>
<BLOCKQUOTE><a href="forumdisplay.php?fid=$forum">{$forum}</a></BLOCKQUOTE></DIV>如果还要显示版块的介绍,则在
<DIV class=quote>
<BLOCKQUOTE><!--{if $forum}--><em> ({lang index_today}: <strong>$forum</strong>)</em></BLOCKQUOTE></DIV>后面添加
<DIV class=quote>
<BLOCKQUOTE><!--{/if}--><!--{if $forum}--><p>$forum</p><!--{/if}--></BLOCKQUOTE></DIV>如果要去掉最后发表,只需要删除下面的代码
<DIV class=quote>
<BLOCKQUOTE> <p>{lang forum_lastpost}:<BR><BR> <!--{if is_array($forum['lastpost'])}--><BR><BR> <a href="redirect.php?tid=$forum&amp;goto=lastpost#lastpost" title="{echo cutstr($forum, 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if} ">$forum</a><BR><BR> <!--{else}--><BR><BR> {lang never}<BR><BR> <!--{/if}--><BR><BR> </p></BLOCKQUOTE></DIV>去除有无<STRONG><FONT color=#ff0000>新贴图标</FONT></STRONG><BR><BR>打开template/default/css_common.htm<BR>找到:
<DIV class=quote>
<BLOCKQUOTE>.list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat; padding-left: 45px !important; }</BLOCKQUOTE></DIV>
<DIV class=quote>
<BLOCKQUOTE>.list th.new { background-image: url({IMGDIR}/forum_new.gif); } </BLOCKQUOTE></DIV>删除<BR><BR><BR>如果需要版块图标到我论坛首页去下载把<A href="http://www.syuanl.com/" target=_blank><FONT color=#0000ff>www.syuanl.com</FONT></A> <BR><BR><BR>看我转贴的这么辛苦的分上回帖支持一下 另外送个IP 谢谢</TD></TR></TBODY></TABLE></DIV> 1.先来去除有无新贴图标
打开template/default/css_common.htm
找到:
.list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat; padding-left: 45px !important; }
删掉
找到:
.list th.new { background-image: url({IMGDIR}/forum_new.gif); }
删掉
头上加以下代码:
td.author { width: 150px; text-align: left; }
后台刷新缓存
2.显示自定义图标(横排3-4个也能显示)
打开默认模板文件:templates/default/discuz.htm
找到:
<th width="$cat"{$forum}>
后面加
<a href="forumdisplay.php?fid=$forum">{$forum}</a>
首先去除版块里的最后回复:
代码:
<p>{lang forum_lastpost}:
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum&goto=lastpost#lastpost" title="{echo cutstr($forum, 30)}{lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}">$forum</a>
<!--{else}-->
{lang never}
<!--{/if}-->
</p>
替换为:
<!--{if $forum}--><p>$forum</p><!--{/if}-->
OK下面就是论坛后台版块管理的事了
进入版块管理页面 每一版块都有版块简介
注意:如果要实现介绍里面有超连接的
下载 (13.79 KB)
2009-3-11 14:55
官网
url后面换成你要连接的地址 color=为显示颜色可以百度搜下颜色代码
去主题和帖数
<p>{lang forum_threads}: $forum, {lang forum_posts}: $forum</p> sorry 看不懂!!
页:
[1]