[WordPress] 外掛分享: Cleverwise phpBB Statistics

首頁外掛目錄 › Cleverwise phpBB Statistics
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★
4/5 分(1 則評價)
1261 天前
最後更新
0%
問題解決
WordPress 3.0.1+ v2.2 上架:2014-03-03

內容簡介

此外掛能夠檢查您的 phpBB 論壇,擷取重要統計數據,例如:總會員數、總主題數、總貼文數、最新會員和最後發文等並在您的 WordPress 網站上顯示這些訊息。phpBB 甚至可以在另一個網站、伺服器和資料中心上運行。您可以完全控制顯示哪些統計數據。主題是可完全自定義的,而且易於修改以符合您的設計概念。

您可以從最多三個論壇中提取統計數據並在您的 WordPress 網站上顯示它們。每個論壇可以具有自己的刷新設定。因此,如果您有一個繁忙的論壇,您可以更頻繁地更新其信息,而如果該論壇不那麼繁忙,更新其信息的頻率就可以較低。

為什麼需要刷新間隔呢?從您的 phpBB 安裝加載統計數據需要進行網絡查詢,這是有道理的,對吧?但是這個操作負擔很重,因為必須與另一個系統進行聯繫,可能還要與另一個資料中心進行通信。因此,從您的論壇中收集的數據存儲在本地 WordPress 資料庫中。因此,在刷新週期之間,phpBB 統計信息是從您網站的資料庫中載入的,這使得這個過程更加適合優化性能。但是還有另外兩個重要的優化功能。

首先,當刷新週期已經過去並且需要新信息時,只有在下一個頁面加載時,此插件才會聯繫 phpBB。因此,如果您有一個 15 分鐘的刷新週期且您的網站在 32 分鐘內沒有訪問者,那麼該插件將在那時抓取更新的信息並開始新的 15 分鐘倒計時。畢竟,當沒有人訪問網站時,為什麼要抓取信息呢?是的,如果您想知道,蜘蛛和機器人也被算作訪問者,因此如果它們是訪問者,則會提取新的信息。

其次,當該插件需要更新論壇信息時,它不會等待太久以等待 phpBB 回應。實際上,它只等待最多兩秒。如果由於網絡問題、緩慢的伺服器或伺服器停機導致無法聯繫論壇,則會顯示上次保存的數據。Cleverwise phpBB 統計信息插件隨即會在每個頁面加載時自動繼續嘗試更新信息。因此,從這裡您可以看到,該插件旨在減少實現目標所需的資源量。

需要注意的是,此設置有兩個必需部分。首先,顯然是此插件。第二個涉及一些重要檔案,使得此插件可以與您的 phpBB 安裝進行通信,稱為 wpapi。您可以看到,系統會與 wpapi 進行通信,該系統已上傳到您的 phpBB 樣式目錄中,並會從 phpBB 中收集實際的信息。現在 wpapi 中有兩個重要的設定。

首先是一個密鑰,您需要創建/編輯該金鑰,以防未經授權的來源獲取您的數據。其次是一個可選設定,允許您在查找最新貼文時指定 wpapi 系統不包含特定論壇。為什麼要進行此操作?如果您的 phpBB 論壇上有一個隱藏的論壇,您可能不希望將其所有主題顯示為最新貼文,對吧?不需要。

現在您想知道從哪裡獲取 wpapi 嗎?下載鏈接已張貼在此插件的“幫助指南”中。因此,一旦安裝了此插件,只需下載這些關鍵檔案,並按照“幫助指南”中的說明進行操作即可。

語言支援:可以用於使用 A-Z 大小寫字母的所有語言。顯示統計信息的默認語言為英語,但可輕鬆更改為任何語言。

現場預覽:想在真實的網站上查看此插件的運作嗎?請訪問ArmadaFleetCommand.com,然後查看右側側邊欄。

不知羞恥的推廣:參見其他WordPress 插件

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Cleverwise phpBB Statistics」→ 直接安裝(推薦)

原文外掛簡介

This plugin will check your phpBB board and grab vital statistics such as total members, total threads, total posts, newest member, and last post and display that information on your WordPress site. phpBB can even be on another site, server, and datacenter. You have total control over which statistics are displayed. The theme is totally customizable and its easy to modify to match your design concept.
You are able to pull statistics from up to three (3) boards and display them on your WordPress powered site. Each board may have its own refresh setting. So if you have a busy board you may update its information more frequently than one that isn’t so heavily traveled.
Why a refresh interval? When loading statistics from your phpBB install a web query is required to grab the information. This makes sense, right? Well this action is taxing because another system must be contacted and possibly another datacenter too. So the data collected from your board(s) is stored in your local WordPress database. Thus between refresh periods the phpBB statistics are loaded from your site’s database, which makes this process more optimized for performance. However there are two other important optimization features.
First when the refresh period has lapsed and its time for new information only when the next page load occurs will this plugin contact phpBB. So if you have a 15 minute refresh period and your site gets no visitors for 32 minutes then at that time the plugin will grab the updated information and start a new 15 minute count down. After all why grab the information when no one is visiting the site. Yes, if you are wondering, spiders and bots count as visitors and thus new information will be pulled if they are the visitor.
Second when it comes time to update the board information this plugin will not wait long for phpBB to respond. In fact it only waits up to two seconds. If the board can’t be contacted in that time due to a network issue, slow server, or server is down the last saved statistics are displayed. Cleverwise phpBB Statistics will then automatically keep trying with every page load to update the information. So as you can see this plugin is designed to reduce the amount of resources required to accomplish the goal at hand.
It should be noted that there are two required parts to this setup. First is, obviously, this very plugin. The second involves some important files that allow this plugin to communicate with your phpBB install(s) called the wpapi. You see this system talks to the wpapi, that is uploaded to your phpBB styles directory, and that is what gathers the actual information from your phpBB(s). Now there are two important settings in the wpapi.
First is a secret key, that you create/make up, which keeps unauthorized sources from grabbing your data. Second is an optional setting that allows you to direct the wpapi system to omit specific forum(s) when looking for the latest post. Why this feature? Well if you have a hidden forum on your phpBB board you probably don’t want any topics from it displayed in the last post to your board do you? Nope.
Now you are wondering where do you get this wpapi? The download link is posted in the “Help Guide” in this plugin. So once you have installed this plugin simply download those key files and follow the instructions in the “Help Guide”.
Language Support: Should work for all languages that use the A-Z alphabet. The default language to display the statistics is in English but is easily changeable into any language.
Live Site Preview: Want to see this plugin in action on a real live site? ArmadaFleetCommand.com and look in the right sidebar.
Shameless Promotion: See other Cleverwise WordPress Directory Plugins
Thanks for looking at the Cleverwise Plugin Series! To help out the community reviews and comments are highly encouraged. If you can’t leave a good review I would greatly appreciate opening a support thread before hand to see if I can address your concern(s). Enjoy!

延伸相關外掛

文章
Filter
Mastodon