[WordPress] 外掛分享: BP Profile Search

前言介紹

  • 這款 WordPress 外掛「BP Profile Search」是 2010-06-28 上架。
  • 目前有 7000 個安裝啟用數。
  • 上一次更新是 2025-04-23,距離現在已有 10 天。
  • 外掛最低要求 WordPress 6.1 以上版本才可以安裝。
  • 有 71 人給過評分。
  • 論壇上目前有 7 個提問,問題解答率 43%

外掛協作開發者

dontdream |

外掛標籤

users | search | members | directory | buddypress |

內容簡介

BP Profile Search是一個針對BuddyPress的成員搜尋和成員目錄外掛程式,它提供:

一個表單生成器,用於生成成員搜尋表單
[bps_directory]短碼以自訂BuddyPress成員目錄或建立額外的成員目錄

每個搜尋表單都有一個目標目錄。當您進行搜尋時,表單的目標目錄會根據您的搜尋篩選。

建立搜尋表單

使用表單生成器,您可以:

新增、編輯、重新排列和移除搜尋欄位
使用BuddyPress個人檔案欄位、使用者和使用者meta資料(包括角色)、BuddyPress使用者群組和使用者分類(包括BuddyPress成員類型)作為搜尋欄位
安裝免費的配套外掛程式BP Distance Search後,可以使用距離搜尋欄位
為每個搜尋欄位選擇其中一種可用的搜尋模式
選擇BuddyPress成員目錄或使用本外掛程式建立的其中一個成員目錄作為目標目錄
選擇要顯示表單的範本
如果不確定,請使用螢幕標題上方的幫助選項卡

表單範本的使用方式與任何其他BuddyPress範本相同。要覆蓋表單範本,請將其複製到主題根目錄的buddypress/members目錄中,然後根據需要編輯新副本。

顯示搜尋表單

建立搜尋表單後,您可以顯示它:

在目標目錄中,使用表單設置中的「將表單添加到目錄」選項
在側邊欄或小工具區域中,使用「個人檔案搜尋」小工具
在文章或頁面中,使用短碼[bps_form]

執行搜尋

在前端,當您在表單中按下「搜尋」按鈕時,BP Profile Search會顯示您搜尋篩選後的表單目標目錄。所有成員標籤和我的朋友標籤都會篩選。

此外,外掛程式還:

顯示活躍篩選器,其中包含活躍的搜尋篩選器和清除按鈕,可清除它們
為每個成員顯示成員詳細資訊區段,其中包含搜尋欄位的值
將搜尋欄位排序選項添加到「排序方式」下拉功能表

活躍篩選器和成員詳細資訊區段的顯示方式是由兩個專用範本顯示的,可以像任何其他BuddyPress範本一樣進行覆蓋。

建立成員目錄

使用[bps_directory]短碼,您可以:

自訂BuddyPress成員目錄或建立額外的成員目錄
為目錄添加隱藏篩選器
在目錄中添加更多排序選項
在每個成員詳細資訊區段顯示額外的成員資訊,例如個人檔案欄位的值
為每個目錄使用不同的Members目錄範本

您可以在空白頁面中輸入短碼以建立新的成員目錄,或者您可以在BuddyPress成員頁面中輸入短碼以自訂BuddyPress成員目錄。

其他文件

表單生成器
搜尋模式
自訂目錄
表單範本

原文外掛簡介

BP Profile Search is a member search and member directories plugin for BuddyPress. It provides:

A form builder to build the member search forms
The [bps_directory] shortcode to customize the BuddyPress Members directory, or to build additional member directories

Each search form has a target directory. When you run a search, you are redirected to the form’s target directory, filtered according to your search.
Build a search form
With the form builder you can:

Add, edit, rearrange, and remove the search fields
Use as search fields the BuddyPress profile fields, the users and usermeta data (including roles), the BuddyPress user groups, and the user taxonomies (including BuddyPress member types)
Use search by distance fields when you install the free companion plugin BP Distance Search
Select, for each search field, one of the available search modes
Select the BuddyPress Members directory, or one of the member directories built with this plugin, as the target directory
Select the form template to display your form
If in doubt, use the Help tab above the screen title

The form template works just like any other BuddyPress template. To override a form template, copy it to the buddypress/members directory in your theme’s root, then edit the new copy according to your needs.
Display a search form
After you build your search form, you can display it:

In its target directory, using the option Add Form to Directory in the form settings
In a sidebar or widget area, using the widget Profile Search
In a post or page, using the shortcode [bps_form]

Run a search
On the front-end, when you hit the Search button in a form, BP Profile Search shows the form’s target directory filtered according to your search. Both the All Members tab and the My Friends tab are filtered.
Additionally, the plugin:

Displays an active filters section containing the active search filters and a Clear button to clear them
Displays for each member a member details section containing the values of the searched fields
Adds to the Order By drop-down the options to sort the directory by the searched fields

The active filters section and the member details section are displayed by two dedicated templates, that can be overridden just like any other BuddyPress template.
Build a member directory
With the [bps_directory] shortcode you can:

Customize the BuddyPress Members directory, or build additional member directories
Add hidden filters to a directory
Add more sort options to a directory
Show additional member information in each member details section, e.g. the value of profile fields
Use a different Members directory template for each directory

You can enter the shortcode in an empty page to build a new member directory, or you can enter it in the BuddyPress Members page to customize the BuddyPress Members directory.
Additional documentation

Form Builder
Search Modes
Custom Directories
Form Templates

In the screenshots below, the City field is provided by the free companion plugin BP Distance Search.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「BP Profile Search」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 3.0 | 3.1 | 3.2 | 3.3 | 3.4 | 3.5 | 3.6 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 | 4.6 | 4.7 | 4.8 | 4.9 | 5.0 | 5.1 | 5.2 | 5.3 | 5.4 | 5.5 | 5.6 | 5.7 | 5.8 | 3.4.1 | 3.5.1 | 3.5.2 | 3.5.3 | 3.5.4 | 3.5.5 | 3.5.6 | 3.6.1 | 3.6.2 | 3.6.3 | 3.6.4 | 3.6.5 | 3.6.6 | 4.0.1 | 4.0.2 | 4.0.3 | 4.1.1 | 4.2.1 | 4.2.2 | 4.2.3 | 4.2.4 | 4.3.1 | 4.4.1 | 4.4.2 | 4.4.3 | 4.4.4 | 4.5.1 | 4.5.2 | 4.5.3 | 4.6.1 | 4.6.2 | 4.6.3 | 4.7.1 | 4.7.2 | 4.7.3 | 4.7.4 | 4.7.5 | 4.7.6 | 4.7.7 | 4.7.8 | 4.7.9 | 4.8.1 | 4.8.2 | 4.8.3 | 4.8.4 | 4.8.5 | 4.8.6 | 4.9.1 | 4.9.2 | 4.9.3 | 4.9.4 | 4.9.5 | 4.9.6 | 4.9.7 | 4.9.8 | 5.0.1 | 5.0.2 | 5.0.3 | 5.0.4 | 5.0.5 | 5.2.1 | 5.2.2 | 5.2.3 | 5.2.4 | 5.3.1 | 5.3.2 | 5.3.3 | 5.3.4 | 5.3.5 | 5.4.1 | 5.4.2 | 5.4.3 | 5.4.4 | 5.4.5 | 5.4.6 | 5.4.7 | 5.4.8 | 5.7.1 | 5.7.2 | 5.7.3 | 5.7.4 | 5.7.5 | 5.8.1 | 5.8.2 | 5.8.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Search Regex 》Search Regex 提供了強大的搜尋和替換函數,可用於 WordPress 文章、頁面、自定義文章類型等數據源的搜尋與替換,這些功能超越了標準搜尋功能,讓你可以搜尋...。
  • String locator 》當你在開發主題和外掛時,你經常會注意到某些文字被硬編碼在文件中,你需要對其進行修改,但你不知道該主題或外掛的名稱,更不知道要查找哪個文件。, 你可以...。
  • Search & Replace 》, 注意:此外掛未進行維護。, , 程式碼會繼續留在 SVN 和 Github 上,如果您有興趣。, 使用「Search & Replace」工具,您可以搜尋任何內容並以其他內容取...。
  • Relevanssi – A Better Search 》Relevanssi 取代了 WordPress 標準搜尋引擎,提供更好的搜尋體驗、豐富的功能和可配置的選項。使用 Relevanssi 會獲得更好的搜尋結果和呈現方式,你的使用者...。
  • Ivory Search – WordPress Search Plugin 》Ivory Search 是一個易於使用的 WordPress 高級搜尋插件。, 它可以增強預設的 WordPress 搜尋功能,還可以讓您創建新的自定義搜尋表單。, 使用 Ivory Search...。
  • Real-Time Find and Replace 》這個外掛允許你在頁面產生時,動態地替換主題和其他外掛的代碼和文字為你選擇的代碼和文字,然後再傳送頁面給使用者的瀏覽器。, 由於查找和替換是實時進行的...。
  • Ajax Search Lite – Live Search & Filter 》Ajax Search Lite 是一款 WordPress 的即時搜尋外掛程式。這款響應式的即時搜尋引擎將提供一個使用者友好的 AJAX 驅動搜尋表單 - 即時搜尋欄。你也可以使用分...。
  • Advanced Woo Search 》說明:, , Advanced Woo Search - 功能強大的 WooCommerce 搜索插件,支援 AJAX 搜索和搜尋結果頁面顯示。, 插件官方網站 | 功能列表 | 文檔, 主要功能, , 產...。
  • Search Exclude 》這個外掛能夠讓你勾選該頁面、文章或其他內容的複選框來將其排除在 WordPress 搜尋結果之外。, 支援快速和批次編輯。, 在外掛設置頁面中,您也可以看到所有被...。
  • Customizer Search 》是否使用使用 WordPress 自訂樣式主題?那你一定會喜歡這個外掛!不再花時間找尋設定,只需要搜尋你想要的設定項目,就可以立即前往該設定。, 適用於所有 Wor...。
  • SearchWP Live Ajax Search 》此 WordPress 外掛不需要SearchWP,但如果有的話就會使用它。在 searchwp.com 可以找到完整文檔。, 歡迎在 GitHub 上貢獻您的力量!https://github.com/jchri...。
  • Search & Filter 》Search & Filter 是一款簡單的 WordPress 搜尋和篩選外掛程式,是 WordPress 搜尋框的進階版。, 您可以透過類別、標籤、自訂分類、文章類型、發佈日期或...。
  • Better Find and Replace 》p>這個外掛提供了一個簡單的方式,可以搜尋目標字詞並且以你想要的字詞替換它。搜尋與替換的過程發生在網站在瀏覽器中呈現之前,不會影響到任何其他檔案或資...。
  • Disable Search 》此外掛可防止 WordPress 處理和允許任何來自網站前端的搜尋請求。具體來說,此外掛:, , 若主題使用標準的 get_search_form() 函式來顯示搜尋表單,則無法顯...。
  • ACF: Better Search 》此插件可為 WordPress 搜尋引擎添加額外功能,讓您可以在 Advanced Custom Fields 指定的欄位中搜尋內容。, 一切都是自動運作的,您無需添加任何額外的程式碼...。

文章
Filter
Mastodon