Discuz教程网

[代码修改] Discuz X2 把评分,邀请以及操作信息移动到其他地方

[复制链接]
authicon dly 发表于 2011-6-18 14:03:30 | 显示全部楼层 |阅读模式
操作信息移到帖子上方
找到:
  1. <!--{if !empty($lastmod['modaction'])}--><div class="modact"><a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G[tid]" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href)"><!--{if $lastmod['modactiontype'] == 'REB'}-->{lang thread_mod_recommend_by}<!--{else}-->{lang thread_mod_by}<!-- {/if}--></a></div><!--{/if}-->
复制代码

刪除;
再找到
  1. <!--{if !$post['first'] && $post['replycredit'] > 0}-->
  2. <div class="cm">
复制代码
在此段上加上
  1. <!--{if !empty($lastmod['modaction'])}--><div class="modact"><a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G[tid]" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href)"><!--{if $lastmod['modactiontype'] == 'REB'}-->{lang thread_mod_recommend_by}<!--{else}-->{lang thread_mod_by}<!-- {/if}--></a></div><!--{/if}-->
复制代码

保存 上传覆蓋 更新缓存 刷新页面查看效果吧
演示图:
360安全浏览器截图22364265.jpg



把评分以及邀请移动到"推送"旁
找到:

  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}-->
复制代码

刪除;
再找到
  1. <!--{if $_G['setting']['magicstatus']}-->
  2. <ul id="mgc_post_$post[pid]_menu" class="p_pop mgcmn" style="display: none;">
  3. <!--{if $post['first']}-->
复制代码

在此段上加上
  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}"><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</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);"><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</a>
  6. <!--{/if}-->
复制代码

保存 上传覆蓋 更新缓存 刷新页面查看效果吧
演示图:
360安全浏览器截图22397078.jpg


懒人包:
游客,如果您要查看本帖隐藏内容请回复






上一篇:QQ插件适合所有网站!支持DISCUZ 所有版本【ASP程序非标准DZ插件】
下一篇:Discuz X2删除版主之间的逗号解决方法
authicon lanqu518 发表于 2011-6-19 05:39:19 | 显示全部楼层
喜欢喜欢很喜欢
authicon 小亮仔 发表于 2012-8-15 17:53:47 | 显示全部楼层
在美化一下就好了
authicon 小亮仔 发表于 2012-8-15 17:53:59 | 显示全部楼层
在美化一下就好了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-6-1 20:14

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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