內容簡介
這是一個簡單的使用者位置地圖外掛,可用於 BuddyPress 網站,並結合一個單獨的功能和縮短程式碼,讓地圖可以嵌入文章、頁面和模板文件中。
可以添加 Google 地圖以顯示會員的位置。地圖會顯示在使用者個人資料/帳戶頁面以及成員目錄列表或啟用後的群組成員列表中。
有一個小工具可用,可讓您更精確地控制地圖的放置位置,適用於自定義小工具區域。目前這個小工具只適用於成員個人資料區域,並沒有其他地圖可用的選項範圍。
這個版本使用了 V3 取代了 Google API,不再需要 API 金鑰,啟發此外掛原始地圖 PHP 代碼的是 Andy Peatling。
管理員設置頁面允許指定地圖尺寸以及基本選項,用於地圖疊加控制,並通過選擇頁面動作鉤子範圍定義地圖應顯示的區域。
地圖可以設置顯示在 BP 成員循環和群組循環目錄以及用戶帳戶屏幕上。
提供了一個單獨的功能和縮短程式碼,可允許在模板中嵌入單個地圖,或通過縮短程式碼從文章或頁面中調用。
重要提示:您必須為會員設置擴展的個人資料欄位可用於添加他們的位置。位置可以在 "Base " 個人資料組中設置,這樣它就會出現在註冊頁面上,或者您可以創建一個新的組,僅在會員個人資料設置中顯示該字段。只有在成員將其位置添加到此新字段時,地圖才會顯示出來。
外掛標籤
開發者團隊
原文外掛簡介
A simple user location map plugin for BuddyPress sites combined with a separate function and shortcode to enable standalone maps in posts/pages and embedded in template files.
Add Google maps to display a members Location. Maps are displayed in the users profile / account page as well as member directory listing or group members listing if enabled.
A widget is available to allow finer control of map placement in custom widget areas that may exist. At present the widget works only for members profile areas and does not have the range of options available to the other maps.
A nod to Andy Peatling for the inspiration of the original map php code.
This version replaces the Google API with the V3 which benefits from not requiring an API key.
The admin settings page allows maps to be assigned dimensions as well as basic options for map overlay controls and to define which area of a page maps should display in by selecting page action hooks.
Maps can be set to display on both the BP members loop and the groups loop directories as well as the user account screens.
A standalone function and shortcode are provided to allow embedding single maps in templates or for calling from a post or page via shortcode.
Important: You must have set up an extended profile field for members to use to add their location. The location can be either set in the ‘Base’ profile group in which case it will appear on the signup page or you can
create a new group and have the field display on the members profile settings only. The maps will only display once the member has added their location to this new field.
