第 1 頁 (共 2 頁)
[問題] 刪除會員後文章數的問題
發表於 : 2005-11-19 09:19
由 bc010843
phpbb 2.0.18
os linux
快速程式 無\r
風格 icg
問題:
刪除某會員後(非使用外掛,從後台刪除),版面的文章數和首頁下方的總數不符\r
這樣正常嗎?被刪除的會員文章實際還留在各個版面.....
有參考過這篇文章操作後並無改變。
現在的問題就是各個版面的文章數加起來和首頁下方的文章數不符\r
請問要如何改才會一樣呢?
謝謝
發表於 : 2005-11-19 17:15
由 依夢兒
一,刪除會員之後,該位會員的文章的確是會繼續保留在版面上,只是發表人名稱會變成訪客罷了,這是正常的。
如果您希望在刪除會員的同時也順道將他發表的所有文章一併移除的話,請透過安裝外掛的方式來達成。(外掛名稱我忘了,請自行搜尋)
二,其實 phpBB 內建的重整對應功能不是很完美,所以各版面文章(主題)數總計與首頁下方文章(主題)數總計會有誤差的情況。
在這裡推薦一支外掛:
http://www.phpbb.com/phpBB/viewtopic.php?t=119493,您可以試試。
發表於 : 2005-11-19 23:38
由 bc010843
謝謝依夢兒~~
請問這個外掛有中文化嗎?另外進入這個外掛時預設全打勾按下start resync文章數還是沒變耶\r
謝謝

發表於 : 2005-11-20 00:14
由 依夢兒
我是習慣進入 Advanced Mode 將 Resync Options 全打勾來進行 Resync 的。
搭配
這一篇文章修改過後的
版面管理 > 管理選項 > 重整對應資料功能來解決文章數不符的問題,一切順利。
該外掛英文其實不多(多半集中在解釋的部分),況且是給管理員自己用的,所以個人認為翻翻字典就可以了。^^
發表於 : 2005-11-20 00:24
由 bc010843
請教依夢兒
照著您的步驟做了,還是一樣沒改變耶......

發表於 : 2005-11-20 00:34
由 依夢兒
這我就不清楚了,抱歉。
記得以前我有遇過很慘的情況,也是筆數不符的問題,解決方法就是自己進資料庫將有問題筆數給修正,挺累的就是了。
發表於 : 2005-11-20 00:53
由 bc010843
依夢兒 寫:這我就不清楚了,抱歉。
記得以前我有遇過很慘的情況,也是筆數不符的問題,解決方法就是自己進資料庫將有問題筆數給修正,挺累的就是了。
請問若是進入資料庫是要進入哪的檔案呢?
謝謝
發表於 : 2005-11-20 04:08
由 slipper
bc010843 寫:謝謝依夢兒~~
請問這個外掛有中文化嗎?另外進入這個外掛時預設全打勾按下start resync文章數還是沒變耶\r
謝謝

簡單的翻譯
代碼: 選擇全部
<?php
/*******************************************************************
Name : Resync Forum Statistics [English Language File]
Copyright : 2003, Adam Alkins
Website : http://www.rasadam.com
email : phpbb at rasadam dot com
$Id: lang_resync_forum_stats.php,v 1.1 2003/07/16 02:03:46 rasadam Exp $:
*******************************************************************/
/*******************************************************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the
Free Software Foundation Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
*******************************************************************/
$lang['Resync_page_title'] = '重整版面統計資料';
$lang['Resync_page_desc_simple'] = "Welcome to the Resync Forum Statistics admin module addon. You are currently in <strong>simple mode</strong>. If you click the button below, this script will go through your database and set over; All your Forum's Topics and Posts counts as well as the last post made in a forum (as seen on the index), All Topic replies counts and the last post in each topic. If you would like to specify exactly which forums you want to resync and what exactly to resync, you should use the Advanced Mode.";
$lang['Resync_page_desc_advanced'] = "Welcome to the Resync Forum Statistics admin module addon. You are currently in <strong>advanced mode</strong>. Below, you can specify exactly what you want to resync (both which forums and what do to). For very large boards, you may only want to do a couple of forums at a time.";
$lang['Resync_all_ask'] = '重整全部的版面與主題';
$lang['Resync_options'] = '重整選項';
$lang['Resync_forum_topics'] = '重整版面主題統計';
$lang['Resync_forum_posts'] = '重整版面文章統計';
$lang['Resync_forum_last_post'] = '重整版面最後發表統計';
$lang['Resync_topic_replies'] = '重整主題最後回覆統計';
$lang['Resync_topic_last_post'] = '重整主題最後發表統計';
$lang['Resync_question'] = '重整?';
$lang['Resync_do'] = '?#125;始重整';
$lang['Resync_redirect'] = '<br /><br />點選 <a href="%s">這裡</a> 重整版面統計資料<br /><br />點選 <a href="%s">這裡</a> 回到控制台首頁';
$lang['Resync_completed'] = '重整完畢, 您的版面與主題已經重整完成!';
$lang['Resync_no_forums'] = '您沒有任何的主題被重整!';
?>
發表於 : 2005-11-20 04:13
由 bc010843
謝謝slipper翻譯....可惜這個外掛對我的網站沒起任何做用\r
別人應該用的到您的中文化吧

發表於 : 2005-11-20 04:51
由 bc010843
發表於 : 2005-11-20 14:14
由 依夢兒
那只是一支讓你可以在首頁顯示總主題數的外掛而已。
原來 phpBB 首頁顯示的是 Post 也就是文章數,並不會顯示 Topic 主題數。
Demo 請參考:
http://chage-aska.com/phpbb/。
安裝之後就會變成像是「目前總共發表了 xxxx 篇文章於 xxxx 篇主題中」這樣。
發表於 : 2005-11-20 14:34
由 bc010843
請教依夢兒
您提供的外掛及參考ETERNAL的文章後,實際操作並無改善
如果要修改檔案該如何做呢?
懇請指點一翻\r
謝謝
發表於 : 2005-11-20 16:39
由 依夢兒
你說的修改檔案是指什麼呢?
其實我還不太瞭解你所說的「版面的文章數和首頁下方的總數不符」是指什麼?可以的話,最好是貼張圖,舉個實例,讓我們知道你所謂的「不符」是什麼樣的情況?
發表於 : 2005-11-20 23:02
由 bc010843
依夢兒
文章不符指的是各個版面的文章數加起來的總合和首頁下方的總數不合
可以從phpMyAdmin改嗎?
謝謝
發表於 : 2005-11-20 23:12
由 依夢兒
phpbb_forums 有兩個欄位 forum_posts 和 forum_topics ,論壇的文章數就是依此來計算的。