1 頁 (共 1 頁)

[問題]能更改討論區啟用日期嗎?(已解決)

發表於 : 2004-08-19 07:03
napoleon0319
因為我重新裝了2.0.10
只有備份了會員資料
這樣就變成會員註冊日期與討論區啟用日期不符合
不知道有沒有辦法更改討論區的啟用日期?

發表於 : 2004-08-19 07:11
napoleon0319
還有我在刪除註冊後從未登入的會員發生錯誤

代碼: 選擇全部

Could not delete group for this user

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

DELETE FROM phpbb_groups WHERE group_id = 

Line : 293
File : /home/phphost4/public_html/mordor/admin/admin_userlist.php
後來自己再註冊了個測試帳號,發現可以刪除,所以我想應該是這個問題...

發表於 : 2004-08-19 09:58
zhizhuan
請問怎麼樣只備份會員資料呀

發表於 : 2004-08-19 10:21
napoleon0319
我是這樣弄得
1.進去MySQL然後進去輸出頁面\r
2.把你想備份的資料選起來,比如phpbb_users
3.把下載儲存選項勾起來
4.執行
接著就會下載一份spl備份檔

要還原回去\r
1.先把你資料庫的phpbb_users給刪除\r
2.進入SQL頁面,下面有個瀏覽\r
3.選你要還原的那個sql備份檔
4.執行

我自己是這樣做的,不知道有沒有錯誤...

發表於 : 2004-08-19 10:39
.::藍色的天空::.
Could not delete group for this user
這個問題官方有人出了一個修正檔案的。
忘了在那, 不過找一下 Delete Group Problem 就可以。

發表於 : 2004-08-19 19:43
napoleon0319
謝謝藍色的天空指示\r
我用"delete group"再google搜尋到解決辦法
原文出處

代碼: 選擇全部

修改方法:
找到:
$sql = "DELETE FROM " . GROUPS_TABLE . " 
WHERE group_id = " . $row['group_id']; 
if( !$db->sql_query($sql) ) 
{ 
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); 
} 

$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " 
WHERE group_id = " . $row['group_id']; 
if( !$db->sql_query($sql) ) 
{ 
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); 
}

改成:
if (intval($row['group_id']) > 0) 
{ 
$sql = "DELETE FROM " . GROUPS_TABLE . " 
WHERE group_id = " . $row['group_id']; 
if( !$db->sql_query($sql) ) 
{ 
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); 
} 

$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " 
WHERE group_id = " . $row['group_id']; 
if( !$db->sql_query($sql) ) 
{ 
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); 
} 
} 

這個錯誤應該也適用於其他版本相同的錯誤.
已經解決了這個問題,不過我還是想知道討論區的啟用日期是不是無法更改?

發表於 : 2004-08-19 20:14
aiken

發表於 : 2004-08-19 21:44
napoleon0319
謝謝aiken~
已經解決