[WordPress] 外掛分享: Contacts BMLT

WordPress 外掛 Contacts BMLT 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Contacts BMLT」是 2019-11-24 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2025-04-18,距離現在已有 16 天。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pjaudiomv | bmltenabled |

外掛標籤

na | bmlt | contacts | narcotics anonymous | basic meeting list toolbox |

內容簡介

Contacts BMLT 是一個外掛,使用 contacts_bmlt 短碼可以顯示關於服務機構的熱線和網站資訊。

短碼
基本:[contacts_bmlt]
屬性:root_server、display_type、parent_id、show_description、show_email、show_url_in_name、show_tel_url、show_full_url、show_all_services、show_locations

— 大部分的短碼屬性可以組合使用

使用說明

必須至少設置 root_server。

例如:[contacts_bmlt root_server="https://www.domain.org/main_server"]

display_type 可以更改顯示類型,加上 display_type="table" 可以選擇 table 或 block 兩種不同的類型。預設為 table。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" display_type="table"]

parent_id 只顯示已設置 parent_id 的服務機構。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" parent_id="22"]

show_description 如果有設置服務機構描述,將在名稱下方顯示服務機構描述。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_description="1"]

show_email 如果有設置服務機構聯繫電子郵件,將在名稱下方顯示服務機構聯繫電子郵件。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_email="1"]

show_url_in_name 會將連結添加到服務機構名稱中,這是默認動作。如果要從服務機構名稱中刪除網址,請添加 show_url_in_name="0"。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_url_in_name="0"]

show_tel_url 會添加一個電話號碼的電話鏈接。預設為不添加。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_tel_url="1"]

show_full_url 會添加一個顯示完整網址的單獨列或區塊。預設為不添加。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_full_url="1"]

show_all_services 會顯示所有服務機構,不論是否填寫了電話或 URL 字段。預設為不顯示。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_all_services="1"]

show_locations 會在服務機構名稱下方顯示位置列表。可接受的值為 location_neighborhood、location_city_subsection、location_municipality、location_sub_province。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_locations="location_municipality"]

範例

https://sca.charlestonna.org/region-contacts/

更多資訊

https://github.com/bmlt-enabled/contacts-bmlt

原文外掛簡介

Contacts BMLT is a plugin that displays helpline and website information about service bodies using the contacts_bmlt shortcode.
SHORTCODE
Basic: [contacts_bmlt]
Attributes: root_server, display_type, parent_id, show_description, show_email, show_url_in_name, show_tel_url, show_full_url, show_all_services, show_locations
— Most Shortcode parameters can be combined
Usage
A minimum of root_server needs to be set.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server"]
display_type To change the display type add display_type="table" there are two different types table, block the default is table.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" display_type="table"]
parent_id This will only display service bodies who has set parent_id.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" parent_id="22"]
show_description This will display the service bodies description underneath the name if set.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_description="1"]
show_email This will display the service bodies contact email underneath the name if set.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_email="1"]
show_url_in_name This will add a link to the service body name, this is the default action. To remove the url from the service body name add show_url_in_name="0quot;.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_url_in_name="0"]
show_tel_url This will add a tel link to the telephone number. Default is to not add it.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_tel_url="1"]
show_full_url This will add a separate column or div with the full url displayed. Default is to not add it.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_full_url="1"]
show_all_services This will display all service bodies regardless of whether they have their phone or URL field filled out. The default is not to display them.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_all_services="1"]
show_locations This will display a list of locations below the service body name. Accepted values are location_neighborhood, location_city_subsection, location_municipality, location_sub_province.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_locations="location_municipality"]
EXAMPLES
https://sca.charlestonna.org/region-contacts/
MORE INFORMATION
https://github.com/bmlt-enabled/contacts-bmlt

各版本下載點

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

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


1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.3.2 | trunk |

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

  • List Locations BMLT 》List Locations BMLT 外掛可返回來自你的 BMLT 伺服器的所有唯一城鎮或縣的資料,以及給定服务团的相關資訊。, SHORTCODE, 基礎用法:[list_locations], 屬性...。
  • Upcoming Meetings BMLT 》Upcoming Meetings BMLT 是一個外掛,可以在頁面或小工具中使用 upcoming_meetings shortcode 顯示從當前時間開始的下 N 個會議。, SHORTCODE, Basic: [upcom...。
  • Temporary Closures BMLT 》Temporary Closures BMLT 是一個 WordPress 外掛,它可以顯示所有存在暫時閉鎖的會議清單。它可以用來查看已發布或未發布的會議。, 短碼, 基本:[temporary_c...。

文章
Filter
Apply Filters
Mastodon