Discuz 7.0 完全移除註冊字樣
1.將畫面右上的註冊連結移除/templates/default/header.htm<a href="$regname" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder">$reglinkname</a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">{lang login}</a>改成 <a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;" class="noborder"> </a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">{lang login}</a>2. 將【發帖】後方的"你可以註冊一個帳號,並以此登錄,以瀏覽更多精彩內容,並隨時發佈觀點,與大家交流。"字樣移除!
/templates/default/discuz.htm<div class="pages_btns s_clear">
<span class="postbtn"><a href="misc.php?action=nav" onclick="floatwin('open_nav', this.href, 600, 410);return false;">{lang send_posts}</a></span>
<!--{if !$discuz_uid}-->
{lang home_welcome_guest}
<!--{else}-->
{lang home_welcome} {$discuz_userss}, <!--{if $lastvisit > 0}-->{lang home_lastvisit} {$lastvisit}, <!--{/if}--><a href="search.php?srchfrom=$newthreads&searchsubmit=yes" class="lightlink">{lang show_newthreads}</a>, <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)" class="lightlink">{lang mark_read}</a>
<!--{/if}-->
</div>將中間的 {lang home_welcome_guest}刪除
3. 將用戶登錄頁面右方的"沒有帳號?註冊"字樣移除
/templates/default/login.htm <div class="logininfo multinfo">
<!--{if $discuz_uid}-->
<h4>$discuz_userss, <a href="javascript:;" onclick="ajaxget('float_register.php?action=logout&formhash={FORMHASH}', 'returnmessage', 'returnmessage');doane(event);">{lang logout}</a></h4>
<p>{echo discuz_uc_avatar($discuz_uid, 'small');}</p>
<!--{else}-->
<h4>{lang login_guest}</h4>
<p>{lang lostpassword}, <a href="javascript:;" onclick="display('loginform');display('loginfield_selectinput');{if $secqaacheck || $seccodecheck}display('seccodelayer');{/if}pagescroll.right()" title="{lang getpassword}">{lang getpassword}</a></p>
<!--{/if}-->
<p>{lang login_fail}</p>
</div>將中間的<h4>{lang login_guest}</h4>刪除
頁:
[1]