[WordPress] 外掛分享: BP Profile Search

首頁外掛目錄 › BP Profile Search
6,000+
安裝啟用
★★★★★
5/5 分(71 則評價)
94 天前
最後更新
0%
問題解決
WordPress 6.1+ v5.8.3 上架:2010-06-28

內容簡介

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成員目錄。

其他文件

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v5.8.3) 或搜尋安裝

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

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon