Discuz!X3.4 帖子关闭非管理员显示“本主题由”
优化界面显示,管理员提升或审核主题通过后,普通用户不显示”本主题由….“
\template\default\forum\viewthread_node_body.htm
搜索
<!--{if !IS_ROBOT && $post['first'] && !$_G['forum_thread']['archiveid']}--> <!--{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}--> <!--{hook/viewthread_modaction}--> <!--{/if}-->
改为:
<!--{if !IS_ROBOT && $post['first'] && !$_G['forum_thread']['archiveid'] && $_G['group']['groupid']=='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}--> <!--{hook/viewthread_modaction}--> <!--{/if}-->