Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

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

  [复制链接]
popuppp 发表于 2011-8-18 18:53:19 | 显示全部楼层 |阅读模式
更多精彩横排美化总结教程,见:https://discuz.dismall.com/thread-2172636-1-1.html

图片演示:
网址演示:驻马店论坛 http://bbs.zmd5.com

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


手动修改方法:打开 \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}-->
复制代码

完成

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

2

查看全部评分

耕田人民割禾草 发表于 2011-8-18 19:08:01 | 显示全部楼层
本帖最后由 耕田人民割禾草 于 2011-8-18 19:08 编辑

这个太漂亮了。学习中啊。拍高摄影论坛
回复

使用道具 举报

桃源老赵 发表于 2011-8-18 20:23:48 | 显示全部楼层
本帖最后由 桃源老赵 于 2011-8-18 20:29 编辑

2.0GBK 帖子内这样的横排怎么做{:soso_e101:}求

如图:







我现非横排风格包文件viewthread_node.htm
请求修改

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

食古不化 发表于 2011-8-18 21:34:56 | 显示全部楼层
修改好的,直接覆盖,回复免费下载。包括UTF版本及GBK版本
回复

使用道具 举报

15096214663 发表于 2011-8-18 21:59:30 | 显示全部楼层
我我我我我我
回复

使用道具 举报

caml321 发表于 2011-8-19 07:25:36 | 显示全部楼层
偷懒来下载 哈
回复

使用道具 举报

mr37 发表于 2011-8-19 10:00:07 | 显示全部楼层
食古不化 发表于 2011-8-18 21:34
修改好的,直接覆盖,回复免费下载。包括UTF版本及GBK版本

你麻痹的  用我头像
回复

使用道具 举报

837924716 发表于 2011-8-19 11:32:10 | 显示全部楼层
哥哥哥哥哥哥哥哥哥哥哥哥哥哥哥哥
回复

使用道具 举报

qianjinxin 发表于 2011-8-19 12:42:01 | 显示全部楼层
;P;P
回复

使用道具 举报

yinhuviva 发表于 2011-8-19 14:00:03 | 显示全部楼层
谢谢,我看看是否是适合 X2
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-22 23:18 , Processed in 0.766035 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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