找回密码
 注册加入

扫一扫,极速登录

QQ登录

只需一步,快速开始

搜索
查看: 11017|回复: 9

论坛首页美化+主题、时间、作者 前加入小图标 Discuz!X2

[复制链接]
发表于 2011-9-19 07:35:44 | 显示全部楼层 |阅读模式
首先上图:有三处(记得先备份哦)
erc20110525.png
找到template/正在用模板/forum/discuz.htm

①首先找到:
  1.                                                         <td class="fl_i">
  2.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2">$forum[threads]</span><span class="xg1"> / $forum[posts]</span><!--{/if}-->
  3.                                                         </td>
复制代码

替换成

  1.                                                         <td class="fl_by">
  2.                                                          ┌ <em><span class="xw0 xi1">{lang forum_todayposts}: $forum[todayposts]</span></em><br><em>├ <span class="xi2">{lang forum_threads}: $forum[threads]</span></em><br>└ <span class="xg1"><em>{lang forum_posts}: $forum[posts]</em>
  3.                           </span>
  4.                                                    </td>
复制代码
②找到:(有2处第二处)
  1. <!--{elseif is_array($forum['lastpost'])}-->
复制代码
下面一段代码:
  1.                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  2.                                                                         <!--{else}-->
复制代码
修改为:
  1.                                               ┌ <img src="{STATICURL}/image/ico/thread.gif" title="主题">: <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>├ <img src="{STATICURL}/image/ico/time.gif" title="时间">: $forum[lastpost][dateline] <br>└ <img src="{STATICURL}/image/ico/member.gif" title="作者">: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
  2.                                            <!--{else}-->
复制代码
③找到:(有2处第一处)
  1. <!--{elseif is_array($forum['lastpost'])}-->
复制代码
下面一段代码:
  1.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  2.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  3.                                                                                         <!--{else}-->
复制代码
修改为:
  1.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  2.                                                                                                 <img src="{STATICURL}/image/ico/thread.gif" title="主题">: <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite><img src="{STATICURL}/image/ico/time.gif" title="时间">: $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}--><img src="{STATICURL}/image/ico/member.gif" title="作者">: $forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  3.                                                                                         <!--{else}-->
复制代码
然后将图片附件上传到/static/image/ico/下,后台更新缓存即可,(绝对不会修改文件)




ico.rar

885 Bytes, 下载次数: 57, 下载积分: 金币 -3 个

发表于 2011-9-19 08:49:59 | 显示全部楼层
第2处  那2个 都换成下面的代码吗?
回复 支持 反对

使用道具 举报

发表于 2011-10-27 23:17:32 | 显示全部楼层
  支持一个!
回复 支持 反对

使用道具 举报

发表于 2011-11-13 13:34:04 | 显示全部楼层
支持 {:soso_e100:}  !
回复 支持 反对

使用道具 举报

发表于 2011-11-14 11:19:31 | 显示全部楼层
这个东西 找的好辛苦呀!
回复 支持 反对

使用道具 举报

发表于 2012-1-19 13:50:28 | 显示全部楼层
不错不错。
回复 支持 反对

使用道具 举报

发表于 2012-2-6 08:55:24 | 显示全部楼层
支持一下的说
回复 支持 反对

使用道具 举报

发表于 2012-2-7 00:17:52 | 显示全部楼层
楼主太厉害了!楼主,I*老*虎*U!
Discuz扩展中心越来越好!
回复 支持 反对

使用道具 举报

发表于 2012-3-10 10:42:34 | 显示全部楼层
支持一个!
回复 支持 反对

使用道具 举报

发表于 2012-3-29 11:01:34 | 显示全部楼层
这个东西 找的好辛苦呀!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册加入  

本版积分规则

Archiver|手机版|小黑屋|Discuz!扩展中心 ( 浙ICP备14042422号-1 )|网站地图QQ机器人

GMT+8, 2024-4-29 03:43 , Processed in 0.151665 second(s), 12 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表