[WordPress] 外掛分享: BP MPO Activity Filter

首頁外掛目錄 › BP MPO Activity Filter
20+
安裝啟用
尚無評分
1132 天前
最後更新
問題解決
WordPress 3.5+ PHP 5.3+ v1.3.3 上架:2010-02-09

內容簡介

More Privacy Options 是一個針對 WPMu 的外掛,允許部落格擁有者微調部落格的隱私設定,擴充 WP 核心預設的隱私設定。然而,將此外掛與 BuddyPress 結合在一起卻有問題,因為 BuddyPress 並不會辨識 MPO 定義的新隱私設定。因此,即使是私人部落格文章也會顯示在公開活動詳情頁面上。

這個外掛,BP MPO Activity Filter,就如其名稱所示:它會過濾 BuddyPress 的活動詳情頁面(不論 bp_has_activities 出現在哪裡),並根據來源部落格的隱私設定篩選輸出。例如,如果一個部落格僅設為社群中已登入成員可見,BP MPO 活動篩選器將只顯示與該部落格相關的活動項目(包括文章和評論)給已登入的使用者。全站管理員則會有未經過濾的活動詳情頁面。

存儲於 BP 1.1.3 或更低版本中的活動項目具有稍微不同的數據格式,因此與此外掛不相容。

我借鑒了這個外掛的想法和一小部分程式碼:http://blogs.zmml.uni-bremen.de/olio。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「BP MPO Activity Filter」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

More Privacy Options is a plugin for WPMu that allows blog owners to fine-tune their blog’s privacy settings, expanding on the default privacy settings offered in the WP core. Putting this plugin together with BuddyPress has been problematic, however, because BuddyPress is not built to recognize the new privacy settings defined by MPO. As a result, even private blog posts get put into the public activity feed.
This plugin, BP MPO Activity Filter, does just what the name suggests: it filters BuddyPress activity feeds (wherever bp_has_activities appears) and filters the output based on the privacy settings of the source blogs. For example, if a blog is set to be visible only to logged in members of the community, BP MPO Activity Filter will only display activity items corresponding to that blog (both posts and comments) to users who are logged in. Sitewide administrators will have an unfiltered activity stream.
Activity items stored with BP 1.1.3 or lower have a slightly different data format, which makes them incompatible with this plugin.
I borrowed the idea, and a little bit of the code, from this plugin: http://blogs.zmml.uni-bremen.de/olio.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon