WP Symposium

WP Symposium

WP Symposium
Codex Home → Getting Started → Importing Data → Import Forums → WP Symposium
WP Symposium v14.x Importer for bbPress
Topics

WP Symposium 『Group Topics』 from Groups are not imported.

Replies

WP Symposium 『Forum comments』 or 『Replies to replies』 and/or 『Threaded replies』 are not imported.

升級 bbPress

升級 bbPress

本節是按版本發佈的 bbPress 主題更新指南。

bbPress 不時創建需要模板和標記調整的新功能,添加新的 JavaScript 腳本,並且可能需要支持這些添加的 CSS 屬性。

如果您的 bbPress 安裝是特別定製的,也就是説,您已經為您的主題或子主題定製了模板文件,也可能複製了 JS 和 CSS 文件,甚至運行您自己的 bbPress 功能設置,您不一定會繼承這些新功能,本節將列出在版本發佈編號下分組的這些更改,詳細説明您需要在主題中更新哪些模板文件、 js 、 css 。

bbPress 2.6 主題更新

系統和服務器要求

系統和服務器要求
  • 已安裝 WordPress
  • PHP 5.2.4 或更高版本 (推薦:PHP 7 或更高版本)
  • MySQL 5.0 或更高版本 (推薦:MySQL 5.6 或更高版本或 MariaDB 10.0 或更高版本)
  • Apache 模塊 mod_rewrite 為 「漂亮的永久鏈接」 啓用
  • HTTPS 支持

bbPress 的要求基本上與 WordPress 完全相同,因此如果您運行的是最新版本的 WordPress,則可以運行 bbPress 。

有關 WordPress 要求的列表,請訪問 WordPress 要求

處理垃圾郵件

處理垃圾郵件

您的站點上有許多垃圾郵件可能會造成嚴重破壞的區域,您需要關注這些區域,雖然垃圾郵件會增加論壇版主和鍵盤管理員的工作量,但他的指南有望引導您朝着正確的方向添加一道防禦牆反對垃圾郵件並幫助將您網站上的垃圾郵件降至最低。

識別垃圾郵件

什麼是垃圾郵件?

垃圾郵件最常見的是由鏈接組成,更常見的是包含通向外部網站的廣告,目的是提高搜索引擎的可見性併為其網站產生更多流量。

通常有兩種類型的垃圾郵件發送者。

  • 自動化- 主要是能夠在網站上註冊帳户併發布的腳本。
  • 人類 - 一個真正的人類垃圾郵件網站。

自動垃圾郵件機器人

下面是一個垃圾郵件機器人的例子,它會留下與此類似的帖子。

垃圾郵件用户1

自動垃圾郵件機器人很可能會執行下面列出的所有操作。

  • 放置一個或多個鏈接到一個或多個站點的業務或服務。Ť他鏈接可能大量文本來隱藏它不容易被看到。
  • 在帖子中留下他們網站的描述以及他們的論壇資料。
  • 顛簸並回復舊話題。
  • 回覆話題並留下最少的回覆,例如 「好」,或複製話題中的現有回覆但在最後插入鏈接。
  • 某些話題的標題似乎與帖子內容中的信息無關。
  • 發表題外話的回覆。
  • 將他們的顯示名稱和用户名作為他們鏈接到的網站。
  • 用一種完全不同的語言發帖,然後是話題中的內容。

這些通常會自動填寫大多數輸入字段,並且很容易發現和識別。本指南中列出的一些插件可以輕鬆處理這些垃圾郵件發送者。

人類垃圾郵件發送者

下面是一個人類垃圾郵件發送者的示例,他發佈了與此類似的帖子。有些不會像這那麼明顯,所以主持人決定再做進一步的決定。

Gravatar 的垃圾郵件用户

人類垃圾郵件發送者很可能會做下面列出的所有事情,也可能會做一些普通垃圾郵件機器人會做的事情。

  • 通過大多數垃圾郵件檢查。
  • 可以有一個 Gravatar 。
  • 發表話題回覆。
  • 碰撞和回覆隨機話題。
  • 不經常發帖。

將垃圾郵件發送者與論壇中的其他用户區分開來可能非常困難,但您可以通過查看他們在論壇個人資料中的活動,通過他們在您網站上的行為來識別垃圾郵件發送者。

最好讓論壇中的版主根據他們對用户的觀察來確定哪些用户實際上是垃圾郵件發送者,並查看他們是否執行了上述任何操作。

處理垃圾郵件的內置工具

內置垃圾郵件控制

所有這些設置都應該在 WordPress 後端的 Settings > Forums 中。

編輯時間

bbPress 允許用户編輯自己的話題和回覆。這對於修復輕微的錯別字非常有用,不幸的是,它也讓一些垃圾郵件發送者有機會先寫一個友好的回覆,然後再編輯它以鏈接回垃圾郵件發送者的網站。

5 分鐘的默認設置應該沒問題。降低此設置會更好,但請確保這不會惹惱您的用户。此設置不會影響 Keymasters 和版主,因為他們可以無限期地編輯帖子。

節流時間

節流時間或洪水控制是單個作者能夠發佈所需的時間量。這是為了避免用户在短時間內多次發帖,並有助於避免垃圾郵件程序的濫用。

默認設置為 10 秒就可以了。將此設置調高會更好,但請確保它不會惹惱您的用户。

Akismet 集成
akismet 集成

bbPress 與 Akismet 完全集成。 Akismet 在發佈之前掃描 bbPress 話題或回覆,以查看它是垃圾郵件還是非垃圾郵件 (不是垃圾郵件),它的掃描服務運行數百次測試,並將帖子標記為垃圾郵件。如果它確實捕獲了垃圾郵件話題,您將在 WordPress 後端垃圾郵件下的話題部分看到它,以及相同的回覆過程。

使用 WordPress 評論審核設置

沒有多少人知道這一點,但您可以使用 WordPress 的 bbPress 評論審核和黑名單設置。您可以在審核和黑名單 指南中找到更多相關信息。

如果您需要將精選的單詞列表添加到評論黑名單中,您可以在 Github 上找到一個列表, 然後您可以從那裏複製您需要的任何文件中的文本。在頁面上,您可以在下面閲讀如何手動使用它或安裝諸如評論黑名單管理器之類的插件,該插件會自動將策劃列表更新到您的評論黑名單部分。

話題和回覆表單保護

帶有 reCAPTCHA 的匿名帖子表單

阻止垃圾帖子出現在您的論壇上的一種好方法是對該話題進行某種保護,並在您的論壇中回覆創建表單。有很多像 Akismet 這樣的插件與 bbPress 集成,以幫助阻止垃圾郵件發送者發佈任何亂七八糟的東西。如果您在您的網站上啓用了匿名發佈,那麼在話題和回覆表單上針對垃圾郵件發送者提供某種保護特別有用。啓用此功能將允許任何人在您的 bbPress 論壇上發帖,甚至無需在您的網站上註冊,啓用匿名發帖會讓垃圾郵件因此而肆虐。如果您確實想使用匿名發帖,建議您保護話題和回覆表單免受垃圾郵件的影響。

查看 WordPress.org 主頁下面列出的任何插件,瞭解有關設置的更多信息。

使用驗證碼

使用蜜罐

  • Spam Destroyer  – 在話題和回覆表單上插入一個隱藏字段,在大多數情況下,垃圾郵件機器人會自動填寫這些表單,並被視為垃圾郵件發送者。

審核通知

使用 bbPress Notify, 您可以選擇接收任何新話題/回覆帖子通知的角色。

手動批准

安裝 bbPress 審核將使您能夠手動批准待審核的話題和回覆等待審核。

註冊垃圾郵件

wordpress 註冊表單

確保您的站點註冊表上有某種垃圾郵件保護措施,因為這是 bbPress 站點的訪問點。讓它成為註冊蜜罐、驗證碼、問題和 IP 黑名單數據庫,以阻止垃圾郵件發送者訪問您的站點。

如果您安裝了 BuddyPress,還可以查看他們的指南,瞭解一些與 BuddyPress 的註冊過程和表單一起使用的插件。

查看 WordPress.org 主頁下面列出的任何插件,瞭解有關設置的更多信息。

需要電子郵件確認

避免垃圾郵件註冊人的一種方法是要求新註冊人確認他們的電子郵件以進行啓用。 WordPress 存儲庫中有大量插件允許這種功能,有些還允許自定義登錄/註冊表單,例如 Theme My Login

手動批准新註冊人

手動批准用户可能對小型利基社區或遭受大型垃圾郵件攻擊且現在希望允許管理員手動批准每個新用户的站點有用。幸運的是,有幾個 WordPress 插件可以做到這一點,這是為數不多的 WP Approve User 之一

僅限邀請

對於非常私密的站點,您可以允許使用 WP-Invites 向某些成員發送邀請 。

註冊驗證碼

  • WangGuard – 允許用户在註冊期間輸入自定義問題的答案。您可以在插件設置中輸入多個自定義問題供註冊人嘗試回答。
  • 高級 noCaptcha reCaptcha  – 使用 Google 的 reCAPTCHA 服務在註冊表單上顯示驗證碼。
  • 數學驗證碼 ——這只是一個簡單的數學驗證碼。

註冊蜜罐

  • Spam Destroyer  – 在 bbPress 註冊頁面上插入一個隱藏字段,默認的 WordPress 註冊頁面,多站點兼容。
  • WangGuard - 包括在註冊表中插入蜜罐的選項。

IP 黑名單數據庫

要使用 IP 黑名單數據庫根據他們的 IP 檢查嘗試註冊的當前用户是否是垃圾郵件發送者,您可以使用下面列出的任何插件。

插件名稱 黑名單數據庫
阻止垃圾郵件發送者 垃圾郵件預防 StopForumSpam 、 Project Honeypot 、 BotScout 、 Spamhaus
不良行為 蜜罐計劃
AP 蜜罐 WordPress 插件 蜜罐計劃
WP 停止論壇垃圾郵件 停止論壇垃圾郵件

IP 黑名單數據庫站點*

停止論壇垃圾郵件

蜜罐計劃

垃圾房

機器人偵察兵

多合一反垃圾郵件解決方案

WangGuard
WangGuard 是一種免費增值解決方案,需要從他們的站點註冊和 API 密鑰。它可以很好地處理註冊垃圾郵件,還包括註冊表中的安全問題、註冊蜜罐、重複帳户驗證、通過電子郵件域阻止用户、清除不需要的註冊垃圾郵件用户以及其他單獨插件中的更多內容。

阻止垃圾郵件發送者垃圾郵件預防

插件阻止垃圾郵件發送者垃圾郵件預防 對於處理註冊垃圾郵件非常有用,還包括處理評論和聯繫表單垃圾郵件的工具。這具有以下功能,例如掃描具有 4 個不同 IP 黑名單數據庫的 IP 地址、拒絕一次性電子郵件地址、阻止無效的 HTTP-REFERRER 、阻止用户名和電子郵件超過 64 個字符的用户、阻止 bbcode 帖子、阻止特定國家/地區註冊到您的站點,以及更能阻止註冊垃圾郵件。

阻止垃圾郵件的其他步驟

允許您的社區報告帖子

您可以讓您網站上的用户使用兩個非常相似的插件將您網站上的用户報告為垃圾郵件

他們都在回覆鏈接附近的每個帖子的管理鏈接中添加了一個 「報告」 鏈接。在任一插件中報告每個帖子時,版主和 Keymaster 都會看到通知/消息,指出報告的特定帖子需要他們注意。然後,版主和鍵盤管理員將採取行動,要麼將帖子發送為垃圾郵件,要麼在被接受為安全的情況下取消舉報該帖子。

在鏈接上使用 rel=nofollow

nofollow 屬性是一種阻止垃圾郵件發送者的方法。 bbPress 會自動將 rel=nofollow 添加到回覆或話題帖子中的所有超鏈接。 SEO 垃圾郵件發送者不會剝奪在您的論壇上發帖的任何好處。

創建社區指南

您可以在側邊欄中設置非常方便的文本小工具,併為您的用户創建一個指南列表,讓您的用户遵循,製作一個帶有論壇規則的超級粘性話題以顯示在您網站上的所有論壇上,您只需鏈接到列出所有論壇規則的單獨頁面。

允許從社交網絡登錄

安裝社交登錄或註冊插件將限制您網站上垃圾郵件註冊者的數量。有大量免費或付費插件可以實現這一點,因此請查看並比較每個插件,然後選擇最符合您興趣的插件。

其他資源

這些主要是關於 WordPress 中的垃圾評論,但每個指南中的一些信息對學習很有用。

安裝 bbPress

安裝 bbPress

建議您在安裝 bbPress 之前進行備份,並且請花點時間查看將在您的站點上安裝的內容以及在您的服務器上運行 bbPress 的要求。完成所有這些之後,在您的站點上安裝 bbPress 相對容易。因此,請閲讀以下指南並按照當前站點設置的分步説明進行操作。

單站點安裝

對於只有一個站點並希望在其上安裝 bbPress 的用户。默認情況下,您的論壇很可能會在 yoursite.com/forums 上看到,「yoursite,com」 是您的站點域名。

多站點安裝

對於擁有站點網絡並希望安裝 bbPress 的用户。

升級 bbPress

從以前或未來的版本升級 bbPress 需要任何幫助嗎?

刪除 bbPress

想要刪除 bbPress 及其所有數據 ???? 嗎?

Codex Standards & Guidelines

Codex Standards & Guidelines

Codex Standards & Guidelines
Codex Home → Participate & Contribute → Codex Standards & Guidelines
Contributing to the Codex
If you are considering contributing to the codex this simple guide is here to help you with the formatting of pages and standards & conventions to follow to keep a set appearance to pages.
The Codex is curated by the bbPress community if you are unsure about the status of an article head over to the forums and post a topic and add the topic tag codex, if you want to follow along with the codex development discussions you can visit this link or subscribe to the codex RSS feed.
Please note: All entries to the Codex are covered by the GNU General Public Licence. All entries may be edited or altered by other contributors.
How to Create a New Codex Article

Log in using your WordPress username and password.
Click on the 「Create New Page」 link in the sidebar.
You can also copy the example template layout from this template to get started quicker.
Add the Title of your article.
Add the article metas: Versions, Components, Types and Context. Meta boxes are located on the screen』s right sidebar. Note, try to keep these as generalised as possible for example, setting the version to 『2.5』 is preseumed to include 2.5 and all incremental version such as 2.5.1, 2.5.2, etc.
Add your article in the appropriate codex section in the Page Attributes meta box under the Context box. If you are unsure where you should add your article head over the handbook Table of Contents for a guide or head over to the forums and create a topic with the codex topic tag and we will try to work out the best place for your article.
Add content of your article. Check that it follows the Codex General Guidelines, Codex Conventions, and Formatting guides posted below for your reference.
After you』re done, click on the 「Publish」 button.

How to Edit/Update an Article in the Codex

Log in using your WordPress username and password.
Navigate to the page you want to edit/update.
Click on the 「Edit This Page」 link in the sidebar. The link displays for the users having article edit access.
After you have made the edit/update, please double-check that the Versions, Components, Types and Context are correct and updated as well, again try to keep these broadly focused so they are easily discovered.
Click on the 「Update」 button in the Publish meta box.

General Guidelines
Broad guidelines on writing for the bbPress Codex

When writing articles please use the second-person point of view to address the reader. e.g. 「Now navigate to your」 Rather than 「Now navigate to our「.
When writing technical articles (functions, actions, etc.) please use the draft template you will find in the dashboard, copy and paste it』s body outline markup to your new post.
Please keep styling to a minimum, avoid inline styling of elements unless to provide something like a color highlight if thought necessary to lend further emphasis to a piece of text e.g styling a warning in red Ensure you have backed up your DB. Please use elements sparingly , are typographic conventions and used to embolden text and italicize text for foreign & scientific words/phrases; , are to lend weight or importance to a word or phrase i.e 』em』 is not used simply to visually style text in italics.
Links: External resource links: Provided to the bottom of the article framework is a section for links to external resources, please use this section for any links to resources that help further however please ensure that these links are additional resources and that your article does not depend on them for all or any part of your article explanation, the reasoning here is external links are not guaranteed to always be available and if the article relies on them and they are down then the article is effectively useless for users. Links that are not related directly to the article content are to be avoided and if found will be removed.
Images: Do add images to articles where they help to illustrate your points or explanations, nothing helps illustrate things better than a timely graphic, screen shots of bbPress, BuddyPress, or WordPress screens help to show the reader layouts. As with links please avoid calling remote images, always upload to the media library, and embed. If uploading images please ensure you have the right to do so and are not infringing on any copyrights that may exist. Any images thought to be or that are under copyright will be removed from pages.
Creating pages: When creating pages , please ensure you select a suitable 『Version』 tag, and optionally select from available 『Components』 tags & 『Types』. Please only select a parent category from the available parent sections, We request that authors DO NOT create new pages that act as parent pages for their article/s, this is to ensure the integrity of the codex structure, however it may be possible to expand the structure if thought beneficial, but please make a request for this to one of the Codex curation team members for consideration.

Codex Conventions

Website Example Names: Always use example.com, example.org or example.net wherever you need to state a domain as an example. This is per RFC 2606. For example, pun intented checkout http://example.com, these are reserved domain names intented for this specific purpose and do not link to any particular host or adfarm.
Admin: The main admin user of a WordPress site always has the login admin. (In examples. A login of admin on a live site has negative security implications.).
Using people』s names in examples: When a name is needed for an ordinary, non-admin user, or a person, use Harriet as the first name, and Smith as the last name.
Administration Panels: The WordPress interface is called Administration Panels not admin panels or dashboard. Dashboard is a specific panel within Administration Panels. Individual panels are also called Administration Screens.
WordPress is spelled WordPress: WordPress is spelled with two capital letters: WordPress.
bbPress is spelled bbPress: bbPress is spelled with only a single capital P dangit letter: bbPress.
BuddyPress is spelled BuddyPress: BuddyPress is spelled with two capital letters: BuddyPress.

Formatting Guide
If writing a technical guide please use the template format provided in this draft document ( copy paste to new page ) Codex template – technical examples layout
1. Heading Tags:
When you use h2 as a heading tag a section in the contents sidebar and link will be automatically created for you. Use h3 – h6 for sub headings of sections under the h2』s.
2. Code examples: Surround your code with the appropriate shortcodes
[php] your PHP code [/php]
[html] your HTML code [/html]
Also available are bash, shell, css, diff, patch, js, javascript, plain, text, sql and xml and are used in the same format as the previous examples.
When adding code examples please escape angle brackets with Numeric/Decimal entities rather than 『Named ones, so use .
3. Lists: Use unordered, ordered and delimited lists where appropriate.
4. File names: Surround file names with the code tags
index.php
5. The structure of a technical guide
[Intro]
a brief intro to the guide
[/Intro][Functions]
List the functions, location, params etc.
[/Functions][Your Content]
The content body – explanation/guide.
[/Your content]
[Example Usage]
Provide a simple example of code use – using pre/code tags.
[/Example Usage]
[Additional Resources]
Add any links to off site or internal pages that might help further.
[/Additional Resources]

Flagging articles – adding article header messages
Page may be tagged in the body with two 『Notes』
1/ This page is a legacy document, at top of page, example, if a page is deemed to be outdated or superseded by bbPress versions, or changes then it may be marked with this code block and the page would be re-assigned under the parent section 『legacy』

This is Legacy Document, the details in this page have either been updated or are deprecated completely. Legacy Docs are retained for historic reference

2/ This page is in need of updating
A page is considered incomplete or needs to be verified for detail.

This page is incomplete or needs checking and verifying.

啓動前檢查清單

啓動前檢查清單

向全世界發佈 bbPress 是一件大事,需要很多手動步驟才能確保所有人都能安全舒適地進行更新和升級。以下是核心團隊在每個新版本中執行的步驟。

  1. 在 codex 上編寫發佈版本頁面 (即 https://codex.bbpress.org/releases/version-2-5-5/)
  2. 將新版本頁面添加到 codex Releases 頁面 (https://codex.bbpress.org/releases/)
  3. bbpress.php 中的衝突版本 (插件標題)
  4. src/bbpress.php 中的衝突版本 (插件標題 + $this->version (setup_globals()))
  5. 在 src/bbpress.php ($this->version (setup_globals())) 中修改數據庫版本
  6. 開發主幹/src readme.txt 中的衝突版本
  7. 在開發主幹/src readme.txt 中插入穩定標籤
  8. 在 readme.txt 中為該版本添加新的升級通知
  9. 向 dev svn 存儲庫提交碰撞
  10. 如果這是一個主要的 xy 版本,從主幹創建 dev 分支
  11. 導出 dev 分支部署分支
  12. 從 dev 分支創建部署標籤
  13. 更新 wp.org 主幹中的 readme.txt,包括 stable 標籤。該版本現已上線。

現在您已經標記了一個新的 bbPress 版本,是時候向全世界宣傳它了!

  1. 在 bbpress.org 上寫一篇博文
  2. 在 bbpress.org 的下載頁面中更新版本號。
  3. 在 bbpdevel.wordpress.com 上寫一篇博文
  4. bbpress.org/forums 中的論壇公告

快完成了!

  1. 在 bbpress.php (2.1-alpha) 中將開發主幹提升到 alpha
  2. 在 bbpress.php (2.0.1-alpha) 中凹凸新創建的 dev 分支
  3. 同步部署主幹和開發主幹
  4. 更新 https://codex.bbpress.org/releases/

GlotPress 翻譯字符串

  • bbPress 的翻譯由 GlotPress 處理
  • 開發字符串在這裏 https://translate.wordpress.org/projects/wp-plugins/bbpress
  • bbpress.pot 的來源 https://bbpress-i18n.svn.wordpress.org/pot/trunk/bbpress.pot
  • 通過運行 grunt release 和推送到 https://plugins.svn.wordpress.org/browser/bbpress/trunk/ 的定期更新將使 #Polyglots 翻譯人員感到高興
  • 當新版本臨近時,這也允許相對容易的 「字符串凍結」
  • 注意:以上兩行不影響 bbPress,而 bbpress.pot 保留在 bbpress-i18n.svnrepo 中。

多站點

多站點

WordPress 多站點是一種能夠創建由單個 WordPress 安裝提供支持的站點網絡的方法。以這種方式運行多個站點的設置非常簡單,而 bbPress 在這種類型的環境中開箱即用。

要了解如何設置站點網絡,請按照有關如何設置站點網絡的 WordPress 法典文章進行操作:  如何創建網絡

在以下任何一種情況下,bbPress 完全按照您的要求工作。 bbPress 本機僅在其啓用的站點上運行。如果它在網絡範圍內、在子站點上或作為必須使用的插件被啓用,它將在網絡中的所有站點上閒置,為這些站點的關鍵大師準備創建論壇並製作適合該需求的體驗地點。

全網啓用

  1. 轉到儀表盤 > 網絡管理員。
  2. 轉到插件 > 添加插件。
  3. 您將看到特色插件的 bbPress 部分,您可以從那裏安裝,或者您可以在搜索欄中鍵入 「bbPress」 並按 Enter 鍵來搜索插件。
  4. 單擊立即安裝。
  5. 打網絡啓用在插件列表中的 bbPress 的插件。

bbPress 也可以配置為必須使用的插件,以便在網絡範圍內工作。

僅多站點域根

  1. 轉到儀表盤 > 網絡管理。
  2. 轉到插件 > 添加插件。
  3. 您將看到特色插件的 bbPress 部分,您可以從那裏安裝,或者您可以在搜索欄中鍵入 「bbPress」 並按 Enter 鍵來搜索插件。
  4. 單擊立即安裝。
  5. 安裝 bbPress 插件後不要點擊網絡啓用。
  6. 將鼠標懸停在 WordPress 工具欄頂部的 「我的站點」 鏈接上,然後選擇您網絡的域根站點。
  7. 轉到插件 > 已安裝的插件。
  8. 現在啓用 bbPress 插件。

僅網絡的子站點

  1. 轉到儀表盤 > 網絡管理。
  2. 轉到插件 > 添加插件。
  3. 您將看到特色插件的 bbPress 部分,您可以從那裏安裝,或者您可以在搜索欄中鍵入 「bbPress」 並按 Enter 鍵來搜索插件。
  4. 單擊立即安裝。
  5. 安裝 bbPress 插件後不要點擊網絡啓用。
  6. 將鼠標懸停在 WordPress 工具欄頂部的 「我的站點」 鏈接上,然後選擇您希望 bbPress 所在的網絡站點。
  7. 轉到插件 > 已安裝的插件。
  8. 現在啓用 bbPress 插件。

多網絡安裝

bbPress 還適用於多個 WordPress 網絡。您可以將多站點安裝變成許多多站點網絡,所有這些網絡都圍繞一箇中央用户羣。您需要安裝 WP Multi Network 等插件 才能配置此類設置。