1 頁 (共 1 頁)

[教學]解決NUKE內建phpBB重複登入登出問題

發表於 : 2003-09-01 21:10
Artemas
nuke本身有登入系統而內建的phpbb又有一套登入系統\r
若從bb登入則nuke還是顯示未登入,而若從nuke登入時有紀錄自動登入\r
則進去bb後若在bb的地方登出造成無法登出動作,不斷自動循環登入動作。
解決方式:
先刪除bb的下方登入畫面,或者前後段加入<!-- 與 -->或者備份此檔案
html\themes\xxxxx\forums\index_body.tpl
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
   {L_PASSWORD}:
<input class="post" type="password" name="password" size="10" />
     {L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
   
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
然後把BB上面登入登出的數值改變
html\includes\page_header.php 第140列
$u_login_logout = 'modules.php?name=Your_Account&op=logout&redirect=Forums';
刪除最後面(=Forums)
這樣就是登出整個nuke

注意喔這是只限於使用NUKE內建phpBB的方式