Invision

Invision

Invision
Codex Home → Getting Started → Importing Data → Import Forums → Invision
Invision IPB v3.1x, v3.2x, v3.3x & v3.4x Importer for bbPress
FAQ & Known Issues
Forums

Forum visibility such as moderator or admin only forums will be publicly visible after importing and you need to secure these manually.
『Link Forums』 will be imported as a standard forum without any URL redirect link.
『Locked Forums』 will be imported as like a normal open forum, again you can close/lock these via the forums panel in wp-admin and setting the forum attributes status to closed.

Topics & Replies
Announcement and Sticky topics 『topic status』 are not set during import, manually 『stick』 any topics after import and recounts are complete. (See trac ticket #2126)
Custom BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in Invision/IPB or after importing into bbPress using phpMyAdmin.
BBCodes not converted: [post=』123′]abc[/post] & [topic=』456′]def[/topic]
Smilies are rendered as images if contained in 『code』 tags eg. :)
Smilies NOT converted::huh:, :wacko:, ^_^, :wub:, -_-, <_ < & :ph34r:
No file attachments are imported.
All 『Ordered Lists』

    will be displayed as numerical lists.
    You may find extra page breaks
    and paragraph

    elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around 『blockquotes』 and 『lists』
    If you are using bbPress 『Show Lead Topic』 some of the formatting will be broken, it has been converted correctly and is an issue with the content-single-topic-lead.php template, see trac # (Ticket to follow).
    elements seem to be a hit and miss at the moment, they render sometimes and sometimes not depending on the import. (not very helpful I know, still digging around this issue)
    are not currently enabled to be embedded inline in bbPress by default with topics and replies, everything was converted correctly and we just need to throw some switches and push some buttons before the next release of bbPress to make it work, watch this space.

    Users
    Invision does not support user profile support for 『First Name』 and 『Last Name』 only 『name』 and 『display_name』 and 『name』 will be the WordPress Username.
    Existing passwords are converted during the import so users can login to WordPress/bbPress as soon as the import and recounts have finished.
    Invision/IPB Moderators, Groups, Ranks are not imported, any users you wish to make 『moderators』 or 『keymasters』 you will have to assign these roles manually via the main WordPress Admin User panel (/wp-admin/users.php).
    User 『Favourites』, 『Subscribed Topics』 or 『Personal Messages (PM』s) are not supported or imported.

    References
    Notes

重置論壇

重置論壇

此過程無法撤消。這將使您的論壇恢復到全新的安裝狀態。此過程無法撤消。在繼續之前備份您的資料庫。

以下資料將被刪除:

  • 所有論壇
  • 所有話題
  • 所有回覆
  • 所有話題標籤
  • 相關後設資料
  • 論壇設定
  • 論壇活動
  • 論壇使用者角色
  • 匯入器助手資料

使用 bbPress 論壇和 BuddyPress 群組論壇

使用 bbPress 論壇和 BuddyPress 群組論壇

使用 bbPress 站點範圍的論壇和 BuddyPress Group 論壇是可能的並且非常強大。為了確保輕鬆設定,需要注意以下幾點:

  1. 安裝並啟用 bbPress 後,請轉到 「頁面/所有頁面」 下的管理儀表盤,並使用 「論壇」 的 slug 查詢任何頁面。
  2. 如果存在這樣的頁面 slug,就像您第一次安裝 BuddyPress 時通常的情況一樣,建議您刪除此頁面,以便為 bbPress 騰出 「論壇」slug 的使用。
  3. 請確保您還清空了此 「論壇」 頁面的垃圾箱以釋放 slug 。
  4. 然後,您可以使用不同的名稱為 BuddyPress Group 論壇建立一個新的頁面 slug 。例如:「群組論壇」 。
  5. 建立新頁面 (例如:「群組論壇」) 後,進入 Settings/BuddyPress/Pages 並選擇此新頁面作為 BuddyPress 群組論壇的佔位符
  6. 最後,轉到設定/永久連結並單擊 「儲存」 以確保更新您的永久連結結構

bbPress 使用您的語言

bbPress 使用您的語言

與 WordPress 一樣,bbPress 具有可用於任何語言的內建功能。下面的說明假定您已經配置在您的語言的 WordPress,並在您的語言安裝 WordPress 。

與 WordPress 一樣,您無需動動手指即可應用 bbPress 翻譯或翻譯更新。大多數站點現在都能夠在後臺自動應用這些更新。如果您的站點能夠在不輸入 FTP 憑據的情況下進行一鍵更新,那麼您的站點應該能夠自動更新翻譯。

您的語言沒有了嗎?

bbPress 翻譯包僅在翻譯 100% 翻譯時更新,如果您在更新翻譯後沒有看到您的語言,請考慮為 bbPress 翻譯項​​目做出貢獻,開始檢視翻譯 WordPress 併發布您的任何問題在 WordPress 的 Polyglots 部落格。

手動覆蓋翻譯

1. 最新 (穩定) 版本的 bbPress 和 dev

轉到 https://translate.wordpress.org/projects/wp-plugins/bbpress 並選擇您的首選語言,例如簡體中文 (中國大陸)

選擇 「穩定 (最新版本)」「開發 (主幹)」

選擇 「所有當前」「.po」並單擊 「匯出」並將此檔案儲存到您計算機上的資料夾中,這次再次選擇 「.mo」

2. 直到 2.6.x 版本

轉到 https://translate.wordpress.org/projects/bbpress/並從子專案中選擇版本

選擇您的首選語言,例如簡體中文 (中國)

選擇 「所有當前」「.po」並單擊 「匯出」並將此檔案儲存到您計算機上的資料夾中,這次再次選擇 「.mo」

如何使用語言檔案

將檔案中的每個檔案重新命名為 bbpress-language_COUNTRY.extension

例如。 bbpress-plugin-zh-cn.pobbpress-zh_CN.po

bbpress-plugin-zh-cn.mobbpress-zh_CN.mo
注意:確保按照上述示例在正確的位置使用-和_。

使用 FTP 將.po.mo 檔案上傳到 WordPress 安裝的/wp-content/languages/bbpress/。如果/wp-content/languages//wp-content/languages/bbpress/資料夾不存在,請建立它們。

建立自定義 bbPress 主題的分步指南

建立自定義 bbPress 主題的分步指南

以下內容是為 bbPress WordPress 外掛的 2.2 版編寫的。本教程中的資訊可能不適用於外掛的早期或後續版本。考慮到這一點,進入教程!

第 1 步:安裝 WordPress

過去,bbPress 是一個獨立的論壇指令碼,如果您稍微修改一下它,它就可以與 WordPress 一起使用,但現在情況不再如此,並且任何說明如此多的資訊都已過時。如今,bbPress 是 WordPress 的一個外掛,它本身無法工作。所以,如果您還沒有,您需要在您的網路伺服器上安裝 WordPress,bbPress 才能正常工作。

第 2 步:安裝 bbPress

設定好 WordPress 後,安裝外掛就很容易了。 (但是,如果您仍然需要幫助,可以按照本指南進行操作!) 在管理面板的外掛區域中,搜尋 bbPress 外掛;將會出現幾個,但很明顯哪個是核心 bbPress 外掛。安裝並啟用 bbPress 外掛。如果您找不到它,那就是這個

第 3 步:編輯 bbPress 的設定

安裝並啟用 bbPress 外掛後,您的 WordPress 管理側邊欄底部將出現三個新選單選項:

您還將擁有兩個新的子選單選項:工具 > 重新計數和設定 > 論壇。

既然您知道所有內容都在哪裡,請單擊 「設定」 下的 「論壇」 。該區域將幫助您控制 bbPress 外掛的基本特性和功能。花一點時間將設定更改為您希望的設定。

請注意,此區域不包含用於編輯主題佈局或樣式的方法。這將在隨後的 bbPress 版本中略有改變,但目前情況確實如此。

第 4 步:建立一些論壇

轉至論壇> 新論壇並新增詳細資訊以建立新論壇。您可以根據需要建立任意數量的論壇,或者如果願意,可以透過管理區域建立主題、回覆和標籤。已經制作了其中的一些內容可能會幫助您以後更徹底地測試您的設計。

第 5 步:建立子主題

如果您正在執行預設的二十二十一主題的 bbPress 應該工作還算不錯的開箱。但是,您可能沒有執行這些主題,或者至少不打算無限期地執行它們,因此您會想知道如何自定義 bbPress 。這就是 WordPress 的一個功能 「子主題」 變得有用的地方。

轉到 WordPress Codex 並按照有關如何建立和啟用子主題的說明進行操作 (或者,本指南提供了更多詳細資訊) 。對於此步驟和下一步,您需要使用 FTP 客戶端 (此處為 FTP 說明) 。

子主題允許您同時執行兩個連線的主題。在 bbPress 和 WordPress 一起工作的情況下,一個 (可能是父級) 將包含您的 WordPress 設計檔案,而另一個 (可能是子級) 將包含您的 bbPress 設計檔案。子級將盡可能多地繼承父級的風格品質;您需要新增到子項的任何其他內容都將在其自己的資料夾中完成。

故障排除提示

如果您在讓 WordPress 識別您的子主題時遇到問題,請確保在您的父/WordPress 主題的 header.php. 它應該是這樣的:

<link rel="stylesheet" href="<?php bloginfo('stylesheet ur'); ?>" type="text/css" media="screen" />

第 6 步:將預設 bbPress 主題複製到您的子主題資料夾

預設檔案不再儲存在 wp-content > plugins > bbpress > bbp-themes 中。在 bbpress > templates > default 中有一個名為 default 的資料夾  ,但我不知道哪些檔案需要複製。

仍在 FTP 中並檢視 WordPress 安裝的根資料夾時,轉到 bbPress 的主題資料夾。也就是說,轉到 wp-content > plugins > bbpress > bbp-themes > bbp-twentyten 。從此資料夾下載所有檔案,除了 style.css. 這些檔案將為您的 bbPress 主題設定樣式。

現在返回到您的子主題資料夾 (wp-content > themes > yourthemefolder-child) 。將預設的 bbPress 主題檔案上傳到子主題資料夾。您可以透過將新 screenshot.png 影象上傳到此資料夾來更改您在管理區域中看到的子主題影象。

第 5 步:自定義 bbPress 的主題檔案

準備好所有檔案後,您現在可以開始設計所有內容。當然,CSS 對您的論壇的視覺樣式有很大幫助,但在某些情況下,您也需要編輯佈局。為此,請找到相關檔案,在文字編輯器中對其進行編輯 (Notepad++很好用),使用 FTP 客戶端覆蓋舊檔案,然後進行測試。 CTRL+Z 可能是也可能不是您的朋友。

有時可能會混淆哪個檔案控制什麼。請注意,每當您 bbp_get_template_part 在 bbPress 模板中看到時,它都會從另一個檔案 (通常與其引用的任何函式的名稱相似) 中提取模板資訊。您可能需要進行一些挖掘才能找到要編輯的正確檔案,但它們的名稱和結構都很好,因此不應該花費太多精力。

現在,獲取主題!如果您有任何疑問,請訪問支援論壇

自定義匯入

自定義匯入

相關: #2134 提高 Example.php 論壇匯入程式的可讀性 (內聯文件和程式碼格式)

您可以自定義包含在/bbpress/includes/admin/converters/Example.php 中的 example.php 以設定從任何 MySQL 資料庫匯入。

一個很好的參考是檢視包含的轉換器 bbPress1.phpphpBB.phpSimplePress5.php 並比較資料庫表和欄位對映,因為這應該會給您一些很好的提示。

以下是逐步完成自定義包含的 Example.php 轉換器的示例的工作,該示例取自支援論壇請求,以幫助製作 Mingle 論壇轉換器@robin-w 的另一篇關於使用自定義匯入器將 Snitz 論壇從 Microsoft Access 轉換為 MySQL 資料庫的精彩帖子也可以在這裡閱讀

  1. 您需要的第一步是找到要從中匯入的當前 SQL 資料庫的資料庫架構,這可以在現有軟體的文件中,或者您可以使用 phpMyAdmin 找到它,現在我將連結到這是來自原始帖子的這裡
  2. 我們還需要確定將在 「匯入論壇」 使用者介面中使用的資料庫字首

現有論壇是否共享相同的目標 WordPress 資料庫,還是現有資料庫與目標 WordPress 資料庫完全分開?

在這個使用 Mingle 的例子中,它是一個 WordPress 外掛,與 WordPress 共享相同的資料庫,並將以下表格新增到現有的 WordPress 資料庫中 (在這種情況下,WordPress 設定為使用 wp_ 作為資料庫字首):

wp_forum_forums
wp_forum_groups
wp_forum_posts
wp_forum_threads
wp_forum_usergroup2user
wp_forum_usergroups

  1. 在同一資料夾中複製 Example.php 並將其命名為 Mingle.php(這裡的檔名區分大小寫)
  2. 開啟您最喜歡的文字編輯器 (記事本、 Text Pad 、 Notepad++、 Sublime Text 等) 並開始編輯您新建立的 Mingle.php 檔案
      • 透過進行以下更改為轉換器指定唯一名稱:
        第 4 行從:* Implementation of Example converter. 第 4 行到:
        * Implementation of Mingle Forums converter.
        第 06 行來自:
        class Example_Converter extends BBP_Converter_Base

        第 06 行至:(
        class Mingle extends BBP_Converter_Base

        確保上述內容與檔名的第一部分匹配,因為它區分大小寫)

從論壇部分和第一個資料庫表和欄位對映 「論壇 ID」 在 Example.php 第 18 行開始

      • 18 // Forum id. Stored in postmeta.
        19 $this->field_map[] = array(
        20 'from_tablename' => 'forum', 'from_fieldname' => 'forumid',
        21 'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id'
        22 );
        看到我們有一個 「from_tablename」 叫 「論壇」 和 「from_fieldname」 叫 「forumid」 這些是隻有兩個值,您將需要在大多數情況下的變化。'to_type' 'to_type'和'to_fieldname'值都是此資料儲存在 bbPress 中的位置,我們不需要更改其中任何一個。
      • 如果我們將這些相同的值與 bbPress1.php 進行比較:29 'from_tablename' => 'forums',
        30 'from_fieldname' => 'forum_id',
      • phpBB.php 相比:18 'from_tablename' => 'forums',
        19 'from_fieldname' => 'forum_id',
      • SimplePress5.php 相比:20 'from_tablename' => 'sfforums',
        21 'from_fieldname' => 'forum_id',
      • 如果我們檢視 Mingle Forums 資料庫架構:
        wp_forum_forums
        id
        name
        parent_id
        description
        views
        sort
      • 計算得出的猜測將使我們將以下內容用於我們的第一個資料庫對映

'from_tablename' => 'forum_forums',
'from_fieldname' => 'id',

下一步在論壇部分,用於 Example.php Line#24 中的第二個資料庫對映 「論壇父 ID」

      • 24 // Forum parent id. If no parent, than 0. Stored in postmeta.
        25 $this->field_map[] = array(
        26 'from_tablename' => 'forum', 'from_fieldname' => 'parentid',
        27 'to_type' => 'forum', 'to_fieldname' => '_bbp_parent_id'
        28 );
      • 這次計算出的猜測將使我們將以下內容用於我們的第二個資料庫對映

'from_tablename' => 'forum_forums',
'from_fieldname' => 'parent_id',

  1. 現在我們對 Example.php 中的每個現有資料庫對映重複此操作
  2. 連線特定欄位值的表...
  3. 標籤 – 如果源論壇不使用話題標籤,您可以從轉換器中刪除此部分,如果它確實編輯了 「來自」 值。
  4. 使用者…
  5. 遷移 BBCode 、笑臉和自定義 HTML……
  6. 下一步…