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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] Discuz! X3 RC 添加编辑按钮到只看该作者后面

[复制链接]
xianling5201 发表于 2013-5-4 15:01:59 | 显示全部楼层 |阅读模式
本帖最后由 xianling5201 于 2013-5-4 15:14 编辑

原来发过2.5的修改教程现在发3.0RC的.有需要的就拿了
DZ2.5
https://discuz.dismall.com/thread-3250361-1-1.html



打开template/default/forum/viewthread_node.htm

找到:
  1. <!--{elseif getstatus($post['status'], 5)}-->
  2.                                         <!--{if !$_G['setting']['authoronleft']}--><a

  3. href="javascript:;" class="xi2">$post[author]</a><!--{/if}-->
  4.                                          <em id="authorposton$post[pid]">{lang poston}

  5. $post[dateline]</em>
  6.                                 <!--{elseif $post['authorid'] && $post['username'] &&

  7. $post['anonymous'] || !$post['authorid'] && !$post['username']}-->
  8.                                         $_G[setting][anonymoustext]
  9.                                         <em id="authorposton$post[pid]">{lang poston}

  10. $post[dateline]</em>
  11.                                 <!--{/if}-->
复制代码
在下面添加
  1. <!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post

  2. ['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']

  3. ['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']

  4. ['closed'] == 0) && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post

  5. ['dbdateline'] > $edittimelimit)))}-->
  6.                                                 <span

  7. class="pipe">|</span><a href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]

  8. &pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}

  9. &page=$page"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang

  10. post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}-->
  11.                               

  12.           <!--{elseif $_G['uid'] && $post['authorid'] == $_G['uid'] && $_G['setting']

  13. ['postappend']}-->
  14.                                                 <a href="forum.php?

  15. mod=misc&action=postappend&tid=$post[tid]&pid=$post[pid]&extra=$_GET[extra]&page=$page"

  16. onClick="showWindow('postappend', this.href, 'get', 0)">{lang postappend}</a>
  17.                

  18.                          <!--{/if}-->
复制代码

本帖子中包含更多资源

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

x
可爱的轩轩 发表于 2013-5-5 11:17:36 | 显示全部楼层
一直坚持用X2.0
回复

使用道具 举报

双IP精品合租 发表于 2013-5-5 12:06:56 | 显示全部楼层
呵呵·························
回复

使用道具 举报

原点2013 发表于 2013-5-10 13:55:19 | 显示全部楼层
学点东西!支持!
回复

使用道具 举报

時間飛了 发表于 2013-11-18 22:18:19 | 显示全部楼层
感谢分享,修改成功
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 11:41 , Processed in 0.121228 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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