Discuz教程网

[代码修改] 【2.0Gbk/Utf横排美化】显示下拉版主、最新发表,最后回复等,精彩美化系列

  [复制链接]
authicon dly 发表于 2012-2-21 13:40:41 | 显示全部楼层 |阅读模式
图片演示:
184131mxxx333bw3u2bwrv.jpg
185252btbkobrtoz8twwv4.jpg.thumb.jpg
手动修改方法:打开 \template\default\forum 中的discuz.htm (或你当前风格中的这个文件)
搜索以下代码,搜索不到,可以缩短搜索关键代码

  1. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
  2. <dd>
  3. <!--{if $forum['permission'] == 1}-->
  4. {lang private_forum}
  5. <!--{else}-->
  6. <!--{if $forum['redirect']}-->
  7. <a href="$forumurl" class="xi2">{lang url_link}</a>
  8. <!--{elseif is_array($forum['lastpost'])}-->
  9. <!--{if $cat['forumcolumns'] < 3}-->
  10. <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>
  11. <!--{else}-->
  12. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  13. <!--{/if}-->
  14. <!--{else}-->
  15. {lang never}
  16. <!--{/if}-->
  17. <!--{/if}-->
复制代码
将这些代码替换为:

  1. <!--{if empty($forum[redirect])}--><dd><span>主题:</span><em style="color:#f60;">$forum[threads]</em> <span>帖子:</span><em style="color:#090;">$forum[posts]</em> <!--{if $forum[moderators]}-->
  2. <span id="default{$forum['fid']}" class="showmenu" onmouseover="showMenu(this.id);">版主列表</span>
  3. <ul id="default{$forum['fid']}_menu" class="p_pop" style="display:none;"><!--{echo str_replace(array(',',' c="1"'),'',$forum[moderators]);}--></ul><!--{else}-->
  4. 版主空缺,<a href="#" target="_blank">点击申请</a><!--{/if}--></dd><!--{/if}-->
  5. <dd>
  6. <!--{if $forum['redirect']}-->
  7. <a href="$forumurl" class="xi2">{lang url_link}</a>
  8. <!--{elseif is_array($forum['lastpost'])}-->
  9. <dd>最后发表:<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author'] $forum[lastpost][dateline]<!--{else}-->{lang anonymous}<!--{/if}--> </dd>
  10. <dd>最新主题:<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 25)}--></a></dd>
  11. <!--{else}-->最后发表:暂无主题, <a href="forum.php?mod=post&action=newthread&fid=$forum[fid]">抢先发表</a>!
  12. <!--{/if}-->
复制代码
完成

修改好的,直接覆盖,回复免费下载包括UTF版本及GBK版本
游客,如果您要查看本帖隐藏内容请回复




上一篇:“论坛精灵”插件【概念设计图】(多功能整合,作者:biong)
下一篇:后台如何开启横排
authicon akquk 发表于 2012-2-25 11:03:22 | 显示全部楼层
我来试试  ,谢谢了
authicon Sephiroth 发表于 2012-3-3 09:34:07 | 显示全部楼层
我来试试  ,谢谢
authicon ╰м嗿翫м╮ 发表于 2012-3-4 20:43:16 | 显示全部楼层
真的直接覆盖?看了再说
authicon longwu1031 发表于 2012-3-4 20:47:50 | 显示全部楼层
我来试试  ,谢谢
authicon Queber 发表于 2012-3-14 02:49:21 | 显示全部楼层
謝謝分享
authicon 北城社区 发表于 2012-3-14 20:09:35 | 显示全部楼层
authicon /mg开の心 发表于 2012-3-14 21:13:59 | 显示全部楼层
有图片演示吗?
authicon /mg开の心 发表于 2012-3-14 21:23:42 | 显示全部楼层
感觉挺不错类,下载试试看
authicon guoshaolong 发表于 2012-5-24 18:47:38 | 显示全部楼层
强烈支持楼主ing……
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-4-29 19:34

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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