Discuz教程网

[代码修改] Discuz X2 快速回复楼主

[复制链接]
authicon dly 发表于 2011-7-2 13:10:07 | 显示全部楼层 |阅读模式
103148b1117hqph95ql5q1.jpg.thumb.jpg
在你的风格CSS最下面添加以下代码
  1. /*快速回复*/
  2. .n2-firstpost{height:56px;padding:10px 10px 10px 25px;margin:10px 0px;background:#eaeaea;border:1px solid #ddd;}
  3. .n2-firstposti{float:left;width:95%;height:30px;line-height:30px;font-size:14px;border:1px solid;border-color:#999 #CCC #CCC #999;padding:2px 5px;background:#fff;}
  4. .n2-firstpostb{float:left;width:90px;height:36px;border:none;overflow:hidden;text-indent:-9999px;background:#317AC3 url({IMGDIR}/n2-post.png) no-repeat 0 0;cursor:pointer;}
复制代码
在你的风格 /forum/viewthread_node.htm 里查找
  1. <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  2. <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'https://www.discuz.1314study.com/forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
  3. <!--{/if}-->
  4. <!--{if $post['first'] && $_G[uid] && $_G[uid] == $post[authorid]}-->
  5. <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</i></a>
  6. <!--{/if}-->
  7. <!--{hook/viewthread_useraction}-->
  8. </div>
  9. <!--{/if}-->
  10. <!--{/if}-->
复制代码
在 <!--{/if}--><!--{/if}-->中间加调用文件
  1. <!--{subtemplate forum/viewthread_fastpost_1}-->
复制代码

也就是代码如下
  1. <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  2. <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'https://www.discuz.1314study.com/forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
  3. <!--{/if}-->
  4. <!--{if $post['first'] && $_G[uid] && $_G[uid] == $post[authorid]}-->
  5. <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</i></a>
  6. <!--{/if}-->
  7. <!--{hook/viewthread_useraction}-->
  8. </div>
  9. <!--{/if}-->
  10. <!--{subtemplate forum/viewthread_fastpost_1}-->
  11. <!--{/if}-->
复制代码
上传附件到你的风格包里

附件下载:
游客,如果您要查看本帖隐藏内容请回复



BUG修复
安装后回帖就提示“请输入标题和内容”,解决方法
主编  提供的修复方案:
首先下载这个附件覆盖原来的viewthread_fastpost_1.htm
viewthread_fastpost_1.rar (1.19 KB, 下载次数: 2)



上一篇:Discuz X2 底部美化带免责声明共享
下一篇:Discuz X2 鲜花鸡蛋(20110702)(各楼层均可操作+AJAX显示留言)
authicon meng123qq 发表于 2011-7-2 13:31:43 | 显示全部楼层
站位 呵呵 不错
authicon 皆无 发表于 2011-7-2 17:29:57 | 显示全部楼层
我回不回呢 考虑再三 还是不回了吧 ^_^
authicon 咫尺天 发表于 2011-7-2 18:29:48 | 显示全部楼层
真的有意思!
authicon rin421 发表于 2011-7-2 19:29:45 | 显示全部楼层
好辛苦才找到啊
authicon 咫尺天 发表于 2011-7-2 20:30:03 | 显示全部楼层
顶你一下,好贴要顶!
authicon mjz 发表于 2011-7-2 21:29:58 | 显示全部楼层
好东西要顶的。
authicon 主编 发表于 2011-7-2 22:36:58 | 显示全部楼层
看看~~~~~~~~~~~
authicon 主编 发表于 2011-7-2 22:37:21 | 显示全部楼层
看看~~~~~~~~~~~
authicon 乐娃娃 发表于 2011-7-3 00:29:52 | 显示全部楼层
这个还是不错的!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-15 16:39

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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