论坛首页美化+主题、时间、作者 前加入小图标 Discuz!X2
首先上图:有三处(记得先备份哦)找到template/正在用模板/forum/discuz.htm
①首先找到: <td class="fl_i">
<!--{if empty($forum)}--><span class="xi2">$forum</span><span class="xg1"> / $forum</span><!--{/if}-->
</td>
替换成
<td class="fl_by">
┌ <em><span class="xw0 xi1">{lang forum_todayposts}: $forum</span></em><br><em>├ <span class="xi2">{lang forum_threads}: $forum</span></em><br>└ <span class="xg1"><em>{lang forum_posts}: $forum</em>
</span>
</td>②找到:(有2处第二处)
<!--{elseif is_array($forum['lastpost'])}-->下面一段代码:
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->修改为:
┌ <img src="{STATICURL}/image/ico/thread.gif" title="主题">: <a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>├ <img src="{STATICURL}/image/ico/time.gif" title="时间">: $forum <br>└ <img src="{STATICURL}/image/ico/member.gif" title="作者">: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
<!--{else}-->③找到:(有2处第一处)
<!--{elseif is_array($forum['lastpost'])}-->下面一段代码:
<!--{if $cat['forumcolumns'] < 3}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->修改为:
<!--{if $cat['forumcolumns'] < 3}-->
<img src="{STATICURL}/image/ico/thread.gif" title="主题">: <a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite><img src="{STATICURL}/image/ico/time.gif" title="时间">: $forum <!--{if $forum['lastpost']['author']}--><img src="{STATICURL}/image/ico/member.gif" title="作者">: $forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->然后将图片附件上传到/static/image/ico/下,后台更新缓存即可,(绝对不会修改文件)
第2处那2个 都换成下面的代码吗? {:4_89:}支持一个! 支持 {:soso_e100:}! 这个东西 找的好辛苦呀! 不错不错。 支持一下的说 楼主太厉害了!楼主,I*老*虎*U!
Discuz扩展中心越来越好!
支持一个! 这个东西 找的好辛苦呀!
页:
[1]